DelaySign boolean variable is used to see if we need to sign or not,.

This commit is contained in:
Brijesh Khandelwal 2019-04-10 18:00:31 +05:30
Родитель c0278d8e72
Коммит 7c0fe63d8c
2 изменённых файлов: 5 добавлений и 9 удалений

Просмотреть файл

@ -32,7 +32,7 @@ param
[string]$AppInsightsKey = "",
# DelaySign
[switch]$DelaySign
[bool]$DelaySign
)
$presentWorkingDirectory= Get-Location
@ -53,12 +53,6 @@ if ($Target -eq "rebuild") {
$buildTarget = "clean"
}
$DelaySignString = 'false'
if($DelaySign)
{
$DelaySignString = 'DelaySign'
}
if($MSBuildFullPath -ne "")
{
if (!(Test-Path $MSBuildFullPath))
@ -147,6 +141,7 @@ if($CreateNugetPackageOnly)
"/property:RequestedVerbosity=$verbosity",
"/property:Configuration=$configuration",
"/property:RestoreConfigFile=$nugetConfigFilePath",
"/property:DelaySign=$DelaySign",
$args)
& $msbuildFullPath $msbuildArgs
}
@ -179,7 +174,8 @@ else {
"/property:Configuration=$configuration",
"/property:RestoreConfigFile=$nugetConfigFilePath",
"/property:AppInsightsKey=$AppInsightsKey",
"/p:RestorePackagesPath=$packagesDirectory",
"/property:RestorePackagesPath=$packagesDirectory",
"/property:DelaySign=$DelaySign",
$args)
& $msbuildFullPath $msbuildArgs
}

Просмотреть файл

@ -36,7 +36,7 @@
</PropertyGroup>
<!-- Enable delay signing with Key.snk -->
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<PropertyGroup Condition="'$(DelaySign)' == 'true'">
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>$(SrcRoot)/properties/Key.snk</AssemblyOriginatorKeyFile>