|
17 | 17 | --> |
18 | 18 | <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion> |
19 | 19 | <SupportedOSPlatformVersion>$(TargetPlatformMinVersion)</SupportedOSPlatformVersion> |
20 | | - <TargetPlatformVersion Condition="'$(IsWindowsTfm)' == 'true'">10.0.26100.0</TargetPlatformVersion> |
21 | | - <TargetPlatformVersion Condition="'$(IsWindowsTfm)' != 'true'">10.0.19041.0</TargetPlatformVersion> |
| 20 | + <TargetPlatformVersion Condition="'$(MultiTargetPlatformIdentifier)' == 'windows'">10.0.26100.0</TargetPlatformVersion> |
| 21 | + <TargetPlatformVersion Condition="'$(MultiTargetPlatformIdentifier)' != 'windows'">10.0.19041.0</TargetPlatformVersion> |
22 | 22 | </PropertyGroup> |
23 | 23 |
|
24 | 24 | <!-- Workaround, improved error message when consuming from Uno projects with mismatched TFMs --> |
25 | 25 | <!-- See https://github.com/CommunityToolkit/Windows/issues/388 --> |
26 | | - <ItemGroup> |
| 26 | + <windows> |
27 | 27 | <None PackagePath="lib/net9.0-windows10.0.18362" Include="$(MSBuildThisFileDirectory)/_._" Pack="true" /> |
28 | 28 | <None PackagePath="lib/net8.0-windows10.0.18362" Include="$(MSBuildThisFileDirectory)/_._" Pack="true" /> |
29 | 29 | <None PackagePath="lib/net7.0-windows10.0.18362" Include="$(MSBuildThisFileDirectory)/_._" Pack="true" /> |
|
32 | 32 | <PropertyGroup Condition="'$(IsUwp)' == 'true'"> |
33 | 33 | <Platforms>x86;x64;arm64</Platforms> |
34 | 34 |
|
35 | | - <WindowsSdkPackageVersion Condition="'$(IsWindowsTfm)' == 'true'">10.0.26100.54</WindowsSdkPackageVersion> |
36 | | - <RuntimeIdentifiers Condition="'$(IsWindowsTfm)' == 'true'">win-x86;win-x64;win-arm64</RuntimeIdentifiers> |
| 35 | + <WindowsSdkPackageVersion Condition="'$(MultiTargetPlatformIdentifier)' == 'windows'">10.0.26100.54</WindowsSdkPackageVersion> |
| 36 | + <RuntimeIdentifiers Condition="'$(MultiTargetPlatformIdentifier)' == 'windows'">win-x86;win-x64;win-arm64</RuntimeIdentifiers> |
37 | 37 | </PropertyGroup> |
38 | 38 |
|
39 | 39 | <PropertyGroup Condition="'$(IsWinAppSdk)' == 'true'"> |
|
58 | 58 | </PropertyGroup> |
59 | 59 |
|
60 | 60 | <!-- Disable warnings for 'This call site is reachable on all platforms.' caused by underlying platform. --> |
61 | | - <PropertyGroup Condition="'$(IsUwp)' == 'true' AND '$(IsWindowsTfm)' == 'true'"> |
| 61 | + <PropertyGroup Condition="'$(IsUwp)' == 'true' AND '$(MultiTargetPlatformIdentifier)' == 'windows'"> |
62 | 62 | <NoWarn>$(NoWarn);CA1416;</NoWarn> |
63 | 63 | </PropertyGroup> |
64 | 64 |
|
|
0 commit comments