Fix Arcade's BeforeCommon imports not being respected#9555
Conversation
MSBuild's build ifnrastructure overwrites the `CustomBeforeMicrosoftCommonTargets` property which results in Arcade's entry to get dropped. Arcade adds to that property to import common files.
|
Oh wow. I'm not sure how this change could introduce new prebuilts. cc @dotnet/source-build-contrib |
|
Okay this change got a lot scarier! |
|
This change appears to be causing StringTools.Benchmark.csproj to be restored but it wasn't prior to these changes. |
|
Here's what the binlogs show. Prior to these changesWith these changesNote that this comes from different restore tasks. In the first, it uses |
|
This seems to be related to #7058. I can reproduce this locally as well. Static graph restore doesn't respect slnf files. |
|
I can reproduce this in a sample application. Filed a nuget issue for it: NuGet/Home#13097 Updated my PR not change the restore engine when building from source. |
|
This should be ready to be merged in and fixes an issue with msbuild's Arcade integration. |
MSBuild's build ifnrastructure overwrites the
CustomBeforeMicrosoftCommonTargetsproperty which results in Arcade's entry to get dropped.Arcade adds to that property to import common files.
This fixes static graph restore not working in this repository when using Arcade's
ExcludeFromBuildproperties.