CleanArchitecture icon indicating copy to clipboard operation
CleanArchitecture copied to clipboard

✨ Enable Simplified Output Paths

Open jasontaylordev opened this issue 2 years ago • 2 comments

The upcoming release of .NET 8 introduces simplified output paths, an option to simplify the output path and folder structure for build outputs (e.g. bin and obj). The new, simplified output path structure gathers all build outputs into a common location, which makes it easier for tooling to anticipate. This can be enabled by updating Directory.Build.props as follows:

+ <!-- See https://aka.ms/dotnet/msbuild/customize for more details on customizing your build -->
  <Project>
      <PropertyGroup>
          <TargetFramework>net8.0</TargetFramework>
          <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+         <ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
      </PropertyGroup>
  </Project>

Learn more about simplified output paths here; https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8#simplified-output-paths.

Unfortunately, this feature is not compatible with NSwag.MSBuild so implementation will need to wait until this issue is resolved; https://github.com/RicoSuter/NSwag/issues/4485.

jasontaylordev avatar Jul 17 '23 10:07 jasontaylordev

Hi, it seems this issue has been resolved.

samabos avatar Aug 03 '24 11:08 samabos

Hi. Can someone verify that this issue has been resolved? And if so, can this issue be closed?

Protiguous avatar Dec 28 '24 18:12 Protiguous

This is fixed.

jasontaylordev avatar Jul 23 '25 20:07 jasontaylordev