Skip to content

Commit 2317a8e

Browse files
committed
Update dependencies in CoreWindow sample
1 parent f611561 commit 2317a8e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

samples/ComputeSharp.SwapChain.D2D1.CoreWindow/ComputeSharp.SwapChain.D2D1.CoreWindow.csproj

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<OutputType>WinExe</OutputType>
44
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
5-
<WindowsSdkPackageVersion>10.0.22621.37-preview</WindowsSdkPackageVersion>
5+
<WindowsSdkPackageVersion>10.0.22621.39</WindowsSdkPackageVersion>
66
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
77
<UseUwp>true</UseUwp>
88
<UseUwpTools>true</UseUwpTools>
@@ -13,12 +13,17 @@
1313
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
1414
<EnableMsixTooling>true</EnableMsixTooling>
1515
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
16-
<AppxAddDefaultTargetDeviceFamilyItem>false</AppxAddDefaultTargetDeviceFamilyItem>
17-
<TargetPlatformWinMDLocation>$(WinDir)\System32\WinMetadata</TargetPlatformWinMDLocation>
1816
</PropertyGroup>
1917

2018
<PropertyGroup>
2119

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+
2227
<!--
2328
Generate a .pdb file to avoid IIDOptimizer build errors.
2429
See: https://github.com/microsoft/CsWinRT/issues/1478.
@@ -44,9 +49,8 @@
4449
</ItemGroup>
4550

4651
<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" />
5054
</ItemGroup>
5155

5256
<ItemGroup>

0 commit comments

Comments
 (0)