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 10, 2024
1 parent 455bfc8 commit 5543341
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.9.2" />
</ItemGroup>

<!--
The order of these project references with aliases is intentional, and should not be changed. This is needed
to workaround an MSBuild bug around `GetReferenceTargetPlatformMonikers` producing multiple items and breaking
the build (in particular here it causes aliases to be lost/overwritten) when compiling with WinAppSDK.
This can be removed once the bug is fixed in MSBuild and the tooling is updated here (likely VS 17.12).
-->
<ItemGroup>
<ProjectReference Include="..\..\src\ComputeSharp.Core\ComputeSharp.Core.csproj" Aliases="Core" />
<ProjectReference Include="..\..\src\ComputeSharp.D2D1\ComputeSharp.D2D1.csproj" Aliases="D2D1" />
<ProjectReference Include="..\..\src\ComputeSharp.D2D1.WinUI\ComputeSharp.D2D1.WinUI.csproj" Aliases="D2D1_WinUI" />
<ProjectReference Include="..\..\src\ComputeSharp.D2D1\ComputeSharp.D2D1.csproj" Aliases="D2D1" />
<ProjectReference Include="..\..\src\ComputeSharp.Core\ComputeSharp.Core.csproj" Aliases="Core" />
<ProjectReference Include="..\..\src\ComputeSharp.D2D1.WinUI.SourceGenerators\ComputeSharp.D2D1.WinUI.SourceGenerators.csproj" />
</ItemGroup>

Expand Down

0 comments on commit 5543341

Please sign in to comment.