[Breaking change]: .User file is now imported in outer builds #38792
Labels
breaking-change
Indicates a .NET Core breaking change
🏁 Release: .NET 8
Work items for the .NET 8 release
in-pr
This issue will be closed (fixed) by an active pull request.
📌 seQUESTered
Identifies that an issue has been imported into Quest.
Description
Previously the SDK only imported the
.user
file configurations in inner builds during a cross targeted build. With dotnet/msbuild#9444 it will now also be imported on outer builds, and it may cause breaks when building projects locally.Version
.NET 8 GA
Previous behavior
When adding a
.user
file for extra local configurations in builds in cross targeted builds, it only imported in inner builds. If the user defined frameworks with<TargetFramework>
it would import the.user
file normally. If<TargetFrameworks>
(note the 's' in the end) the.user
file would be imported for every internal build for each framework (even if just one was defined), but not for the outer build, which runs certain targets again.New behavior
When using the
<TargetFrameworks>
tag to define targeted frame works, the build will not import the.user
file on all internal builds and on the outer build.Type of breaking change
Reason for change
The
.user
config file being imported in the outer build was an expected behavior in MSBuild that was not happening.Recommended action
This change should not affect any deployments or CIs, just local builds. Review the configurations that are expected on the outer build if the extra configurations change how it is processed.
Feature area
SDK
Affected APIs
No response
Associated WorkItem - 206395
The text was updated successfully, but these errors were encountered: