Skip to content

Commit bd5a599

Browse files
committed
Add package reference to Win2D to make it possible to generate a MSIX and deploy
1 parent a993848 commit bd5a599

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

Samples/Islands/DrawingIsland/DrawingCsTestApp/DrawingCsTestApp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<!-- Added CsWinRT reference to avoid WinMD error as a result of WinMD leaking via project reference. -->
3535
<PackageReference Include="CommunityToolkit.WinAppSDK.LottieWinRT" Version="8.0.230819-rc-LottieIsland.7.g92a87e1883" />
3636
<PackageReference Include="CommunityToolkit.WinUI.Lottie" Version="8.0.230819-rc-LottieIsland.7.g92a87e1883" />
37+
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.2.0" />
3738
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.0.7" />
3839

3940
<!-- Reference WASDK for types -->

Samples/Islands/DrawingIsland/DrawingCsTestPackage/DrawingCsTestPackage.wapproj

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,43 @@
3838
<TargetPlatformVersion>10.0.22621.0</TargetPlatformVersion>
3939
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
4040
<DefaultLanguage>en-US</DefaultLanguage>
41-
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
41+
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
4242
<NoWarn>$(NoWarn);NU1702</NoWarn>
4343
<EntryPointProjectUniqueName>..\DrawingCsTestApp\DrawingCsTestApp.csproj</EntryPointProjectUniqueName>
44+
<GenerateAppInstallerFile>True</GenerateAppInstallerFile>
45+
<PackageCertificateThumbprint>4352A429084F122ACDA526CE5D7D6236E4160106</PackageCertificateThumbprint>
46+
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
47+
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
48+
<GenerateTestArtifacts>True</GenerateTestArtifacts>
49+
<AppxBundlePlatforms>x64</AppxBundlePlatforms>
50+
<AppInstallerUri>c:\fake</AppInstallerUri>
51+
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
52+
</PropertyGroup>
53+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
54+
<AppxBundle>Always</AppxBundle>
55+
</PropertyGroup>
56+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
57+
<AppxBundle>Always</AppxBundle>
58+
</PropertyGroup>
59+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
60+
<AppxBundle>Always</AppxBundle>
61+
</PropertyGroup>
62+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
63+
<AppxBundle>Always</AppxBundle>
64+
</PropertyGroup>
65+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
66+
<AppxBundle>Always</AppxBundle>
67+
</PropertyGroup>
68+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
69+
<AppxBundle>Always</AppxBundle>
4470
</PropertyGroup>
4571
<ItemGroup>
4672
<AppxManifest Include="Package.appxmanifest">
4773
<SubType>Designer</SubType>
4874
</AppxManifest>
4975
</ItemGroup>
5076
<ItemGroup>
77+
<None Include="DrawingCsTestPackage_TemporaryKey.pfx" />
5178
<Content Include="Images\SplashScreen.scale-200.png" />
5279
<Content Include="Images\LockScreenLogo.scale-200.png" />
5380
<Content Include="Images\Square150x150Logo.scale-200.png" />
@@ -58,7 +85,16 @@
5885
</ItemGroup>
5986
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
6087
<ItemGroup>
88+
6189
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.3233" PrivateAssets="all" />
90+
<!-- Added CsWinRT reference to avoid WinMD error as a result of WinMD leaking via project reference. -->
91+
<PackageReference Include="CommunityToolkit.WinAppSDK.LottieWinRT" Version="8.0.230819-rc-LottieIsland.7.g92a87e1883" />
92+
<PackageReference Include="CommunityToolkit.WinUI.Lottie" Version="8.0.230819-rc-LottieIsland.7.g92a87e1883" />
93+
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.2.0" />
94+
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.0.7" />
95+
96+
<!-- Reference WASDK for types -->
97+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240428000" />
6298
</ItemGroup>
6399
<ItemGroup>
64100
<ProjectReference Include="..\DrawingCsTestApp\DrawingCsTestApp.csproj" />

0 commit comments

Comments
 (0)