Skip to content

Commit bf45e14

Browse files
committed
Improved error message when consuming from Uno projects with mismatched TFMs
1 parent 6d67d93 commit bf45e14

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

MultiTarget/WinUI.Extra.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
1414
</PropertyGroup>
1515

16+
<!-- Workaround, improved error message when consuming from Uno projects with mismatched TFMs -->
17+
<!-- See https://github.com/CommunityToolkit/Windows/issues/388 -->
18+
<ItemGroup>
19+
<None PackagePath="lib/net8.0-windows10.0.18362" Include="$(MSBuildThisFileDirectory)/_._" Pack="true" />
20+
<None PackagePath="lib/net7.0-windows10.0.18362" Include="$(MSBuildThisFileDirectory)/_._" Pack="true" />
21+
</ItemGroup>
22+
1623
<PropertyGroup Condition="'$(IsWinAppSdk)' == 'true'">
1724
<!-- See https://github.com/microsoft/WindowsAppSDK/issues/3842 -->
1825
<UseRidGraph>true</UseRidGraph>

MultiTarget/_._

Whitespace-only changes.

0 commit comments

Comments
 (0)