Skip to content

Commit

Permalink
Add workaround for build failure due to MSBuild bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jun 12, 2024
1 parent 455bfc8 commit c3fb505
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,16 @@
<AutoGen>True</AutoGen>
</Compile>
</ItemGroup>

<!--
Setting this property is needed as a temporary workaround for an MSBuild bug triggered by WinAppSDK,
around 'GetReferenceTargetPlatformMonikers'. That target is currently producing multiple items and breaking
the build (in particular here it causes aliases to be lost/overwritten, and to ignore some attributes such
as 'PrivateAssets', causing potential type collisions across different projects) when compiling projects.
This can be removed once the bug is fixed in MSBuild and the tooling is updated here (likely VS 17.12).
See: https://github.com/dotnet/msbuild/pull/10220.
-->
<PropertyGroup>
<FindInvalidProjectReferences>false</FindInvalidProjectReferences>
</PropertyGroup>
</Project>

0 comments on commit c3fb505

Please sign in to comment.