|
1 | | -<Project Sdk="MSBuild.Sdk.Extras/3.0.44"> |
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | <PropertyGroup> |
3 | | - <TargetFrameworks>net7.0;net7.0-windows10.0.19041;net7.0-android;net7.0-ios;net7.0-maccatalyst;net7.0-macos</TargetFrameworks> |
4 | | - <LangVersion>11.0</LangVersion> |
| 3 | + <TargetFrameworks>net10.0;net10.0-windows10.0.22621.0;net10.0-android;net10.0-ios</TargetFrameworks> |
| 4 | + <LangVersion>14</LangVersion> |
5 | 5 | <!-- Ensures the .xr.xml files are generated in a proper layout folder --> |
6 | 6 | <GenerateLibraryLayout>true</GenerateLibraryLayout> |
7 | 7 | <RootNamespace>MessageDialogService</RootNamespace> |
|
17 | 17 | <PackageProjectUrl>https://github.com/nventive/MessageDialogService</PackageProjectUrl> |
18 | 18 | <DefineConstants>$(DefineConstants);WINUI</DefineConstants> |
19 | 19 |
|
| 20 | + <!-- |
| 21 | + Needed to use unsafe code for interop with WinRT. |
| 22 | + |
| 23 | + WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\WinRTGenericInstantiation.g.cs(450,31,450,48): |
| 24 | + error CS0227: Unsafe code may only appear if compiling with /unsafe |
| 25 | + --> |
| 26 | + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| 27 | + |
20 | 28 | <!--Needed for Source Link support --> |
21 | 29 | <PublishRepositoryUrl>true</PublishRepositoryUrl> |
22 | 30 | <EmbedUntrackedSources>true</EmbedUntrackedSources> |
23 | 31 | <IncludeSymbols>true</IncludeSymbols> |
24 | 32 | <SymbolPackageFormat>snupkg</SymbolPackageFormat> |
25 | 33 | </PropertyGroup> |
26 | 34 |
|
27 | | - <ItemGroup> |
28 | | - <PackageReference Include="Uno.WinUI" Version="5.0.19" /> |
| 35 | + <ItemGroup Condition="'$(TargetFramework)'!='net10.0-windows10.0.22621.0'"> |
| 36 | + <PackageReference Include="Uno.WinUI" Version="6.3.62" /> |
29 | 37 | </ItemGroup> |
30 | 38 |
|
31 | 39 | <ItemGroup> |
32 | 40 | <!--Microsoft.SourceLink.GitHub is needed for Source Link support --> |
33 | | - <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" /> |
| 41 | + <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" /> |
34 | 42 | </ItemGroup> |
35 | 43 |
|
36 | | - <PropertyGroup Condition="'$(TargetFramework)'=='net7.0'"> |
| 44 | + <PropertyGroup Condition="'$(TargetFramework)'=='net10.0'"> |
37 | 45 | <DefineConstants>$(DefineConstants);__WASM__</DefineConstants> |
38 | 46 | </PropertyGroup> |
39 | 47 |
|
40 | | - <ItemGroup Condition="'$(TargetFramework)'=='net7.0-windows10.0.19041'"> |
41 | | - <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.1.0" /> |
42 | | - <FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" RuntimeFrameworkVersion="10.0.22000.24" /> |
43 | | - <FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" TargetingPackVersion="10.0.22000.24" /> |
| 48 | + <ItemGroup Condition="'$(TargetFramework)'=='net10.0-windows10.0.22621.0'"> |
| 49 | + <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.7.250606001" /> |
44 | 50 | </ItemGroup> |
45 | 51 |
|
46 | | - <ItemGroup Condition="'$(TargetFramework)'!='net7.0-windows10.0.19041'"> |
| 52 | + <PropertyGroup Condition="'$(TargetFramework)'=='net10.0-windows10.0.22621.0'"> |
| 53 | + <WindowsSdkPackageVersion>10.0.22621.38</WindowsSdkPackageVersion> |
| 54 | + </PropertyGroup> |
| 55 | + |
| 56 | + <ItemGroup Condition="'$(TargetFramework)'!='net10.0-windows10.0.22621'"> |
47 | 57 | <Page Include="**\*.xaml" Exclude="bin\**\*.xaml;obj\**\*.xaml" /> |
48 | 58 | <Compile Update="**\*.xaml.cs"> |
49 | 59 | <DependentUpon>%(Filename)</DependentUpon> |
|
0 commit comments