|
2 | 2 | <PropertyGroup> |
3 | 3 | <OutputType>WinExe</OutputType> |
4 | 4 | <TargetFramework>net8.0-windows10.0.22621.0</TargetFramework> |
5 | | - <WindowsSdkPackageVersion>10.0.22621.37-preview</WindowsSdkPackageVersion> |
| 5 | + <WindowsSdkPackageVersion>10.0.22621.39</WindowsSdkPackageVersion> |
6 | 6 | <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion> |
7 | 7 | <UseUwp>true</UseUwp> |
8 | 8 | <UseUwpTools>true</UseUwpTools> |
|
13 | 13 | <PublishProfile>win-$(Platform).pubxml</PublishProfile> |
14 | 14 | <EnableMsixTooling>true</EnableMsixTooling> |
15 | 15 | <HasPackageAndPublishMenu>true</HasPackageAndPublishMenu> |
16 | | - <AppxAddDefaultTargetDeviceFamilyItem>false</AppxAddDefaultTargetDeviceFamilyItem> |
17 | | - <TargetPlatformWinMDLocation>$(WinDir)\System32\WinMetadata</TargetPlatformWinMDLocation> |
18 | 16 | </PropertyGroup> |
19 | 17 |
|
20 | 18 | <PropertyGroup> |
21 | 19 |
|
| 20 | + <!-- |
| 21 | + This sample does not need WebView2, but WinAppSDK is pulling it in as a transitive NuGet |
| 22 | + dependency. We can manually exclude the native .dll-s to avoid them being in the output. |
| 23 | + --> |
| 24 | + <WebView2EnableCsWinRTProjectionExcludeCoreRef>true</WebView2EnableCsWinRTProjectionExcludeCoreRef> |
| 25 | + <WebView2NeverCopyLoaderDllToOutputDirectory>true</WebView2NeverCopyLoaderDllToOutputDirectory> |
| 26 | + |
22 | 27 | <!-- |
23 | 28 | Generate a .pdb file to avoid IIDOptimizer build errors. |
24 | 29 | See: https://github.com/microsoft/CsWinRT/issues/1478. |
|
44 | 49 | </ItemGroup> |
45 | 50 |
|
46 | 51 | <ItemGroup> |
47 | | - <PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2646-prerelease" ExcludeAssets="all" /> |
48 | | - <PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.0-prerelease.240722.1" /> |
49 | | - <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.7.240721001-experimentalpr" IncludeAssets="build" PrivateAssets="all" /> |
| 52 | + <PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.1" /> |
| 53 | + <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240807006-preview1" IncludeAssets="build" PrivateAssets="all" /> |
50 | 54 | </ItemGroup> |
51 | 55 |
|
52 | 56 | <ItemGroup> |
|
0 commit comments