Skip to content

Commit 3e2d5fc

Browse files
author
Aditya Rastogi
committed
Fix warnings in cs-winui project
1 parent 8336385 commit 3e2d5fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Samples/WindowsML/cs-winui/WindowsMLSample.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
<OutputType>WinExe</OutputType>
44
<RootNamespace>WindowsMLSample</RootNamespace>
55
<ApplicationManifest>app.manifest</ApplicationManifest>
6-
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
6+
<PublishProfile Condition="Exists('$(MSBuildProjectDirectory)\Properties\PublishProfiles\win-$(Platform).pubxml')">win-$(Platform).pubxml</PublishProfile>
77
<UseWinUI>true</UseWinUI>
88
<EnableMsixTooling>true</EnableMsixTooling>
99
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1010
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
11-
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
11+
<AppxPackageSigningEnabled Condition="'$(AppxPackageSigningEnabled)' == '' and ('$(PackageCertificateThumbprint)' != '' or '$(PackageCertificateKeyFile)' != '')">True</AppxPackageSigningEnabled>
12+
<AppxPackageSigningEnabled Condition="'$(AppxPackageSigningEnabled)' == ''">False</AppxPackageSigningEnabled>
1213
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
1314
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
1415
<AppxSymbolPackageEnabled>False</AppxSymbolPackageEnabled>

0 commit comments

Comments
 (0)