Skip to content

Commit

Permalink
Improved error message when consuming from Uno projects with mismatch…
Browse files Browse the repository at this point in the history
…ed TFMs
  • Loading branch information
Arlodotexe committed Apr 11, 2024
1 parent 6d67d93 commit bf45e14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MultiTarget/WinUI.Extra.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
</PropertyGroup>

<!-- Workaround, improved error message when consuming from Uno projects with mismatched TFMs -->
<!-- See https://github.com/CommunityToolkit/Windows/issues/388 -->
<ItemGroup>
<None PackagePath="lib/net8.0-windows10.0.18362" Include="$(MSBuildThisFileDirectory)/_._" Pack="true" />
<None PackagePath="lib/net7.0-windows10.0.18362" Include="$(MSBuildThisFileDirectory)/_._" Pack="true" />
</ItemGroup>

<PropertyGroup Condition="'$(IsWinAppSdk)' == 'true'">
<!-- See https://github.com/microsoft/WindowsAppSDK/issues/3842 -->
<UseRidGraph>true</UseRidGraph>
Expand Down
Empty file added MultiTarget/_._
Empty file.

0 comments on commit bf45e14

Please sign in to comment.