File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Samples/Islands/DrawingIsland Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <TargetFramework >net9.0-windows</TargetFramework >
3
+ <!-- WinAppSDK requires at least the 17763 build of windows, so we need to set that here.
4
+ You can set this in the Visual Studio project properties UI too. -->
5
+ <TargetFramework >net9.0-windows10.0.17763.0</TargetFramework >
4
6
<UseWpf >true</UseWpf >
5
7
<EnableDefaultItems >false</EnableDefaultItems >
6
8
<Platforms >x64;ARM64;x86</Platforms >
9
+
10
+ <!-- When adding a reference to WinAppSDK, we need to enable only the RIDs for the platforms WinAppSDK supprts. -->
11
+ <RuntimeIdentifiers >win-x64;win-x86;win-arm64</RuntimeIdentifiers >
12
+
13
+ <!-- These flags turn off some WinAppSDK features we won't be using. -->
14
+ <UseWinUITools >false</UseWinUITools >
15
+ <EnableCoreMrtTooling >false</EnableCoreMrtTooling >
7
16
</PropertyGroup >
8
17
<PropertyGroup >
9
18
<Configuration Condition =" '$(Configuration)' == '' " >Debug</Configuration >
74
83
<ErrorReport >prompt</ErrorReport >
75
84
<WarningLevel >4</WarningLevel >
76
85
</PropertyGroup >
77
- <ItemGroup >
78
- </ItemGroup >
79
86
<ItemGroup >
80
87
<ApplicationDefinition Include =" App.xaml" >
81
88
<Generator >MSBuild:Compile</Generator >
119
126
<ItemGroup >
120
127
<None Include =" App.config" />
121
128
</ItemGroup >
129
+ <ItemGroup >
130
+ <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.5.240428000" />
131
+ </ItemGroup >
122
132
<ItemGroup >
123
133
<Resource Include =" appicon.ico" />
124
134
</ItemGroup >
Original file line number Diff line number Diff line change 69
69
<Import Project =" $(WapProjPath)\Microsoft.DesktopBridge.targets" />
70
70
<ItemGroup >
71
71
<PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.22621.3233" PrivateAssets =" all" />
72
+ <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.5.240428000" />
72
73
</ItemGroup >
73
74
<ItemGroup >
74
75
<ProjectReference Include =" ..\CalculatorDemo\CalculatorDemo.csproj" />
You can’t perform that action at this time.
0 commit comments