Today, ref assemblies are copied into the bin/ref folder by default. However, this is a sometimes confusing and unexpected output that is primarily used for internal build-performance reasons.
For Visual Studio 2022 we'd like to move this to a folder under obj.
The code change is to update this:
|
<TargetRefPath Condition=" '$(TargetRefPath)' == '' and '$(ProduceReferenceAssembly)' == 'true' ">$([MSBuild]::NormalizePath($(TargetDir), 'ref', $(TargetFileName)))</TargetRefPath> |
The compat impact is less clear; some customers may have projects that expect the presence in ref. We could provide an opt-out (and/or put this under a changewave) but we'd like to hear from anyone who objects to this plan.
Today, ref assemblies are copied into the
bin/reffolder by default. However, this is a sometimes confusing and unexpected output that is primarily used for internal build-performance reasons.For Visual Studio 2022 we'd like to move this to a folder under
obj.The code change is to update this:
msbuild/src/Tasks/Microsoft.Common.CurrentVersion.targets
Line 326 in 18a8ddc
The compat impact is less clear; some customers may have projects that expect the presence in
ref. We could provide an opt-out (and/or put this under a changewave) but we'd like to hear from anyone who objects to this plan.