DelaySign boolean variable is used to see if we need to sign or not,.
This commit is contained in:
Родитель
c0278d8e72
Коммит
7c0fe63d8c
12
build.ps1
12
build.ps1
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче