MSBuildSdks: Microsoft.Build.Artifacts conflicts with .NET 8 SDK simplified output paths

The .NET 8 SDK has a new simplified output paths feature that is opt-in.

However, the property that has been chosen to configure it is ArtifactsPath.

That leads to any projects using Microsoft.Build.Artifacts that are built with the .NET 8 SDK to suddenly find bin and obj folders in the build artifacts folder.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

If it’s not actually possible to resolve the conflict between the shared use of ArtifactsPath, then I don’t think it’s really acceptable to leave things in the state that they are currently in.

Instead, I think it makes more sense to go ahead and take a breaking change in a new major version of Microsoft.Build.Artifacts and have it use a different property name, for example BuildArtifactsPath.

That was what I was going to suggest doing when I opened this issue before learning that there was an attempt to modify the SDK.