-Obsoleted FormatterAssemblyStyle in non-full .NET assemblies
-Tests
This commit is contained in:
@@ -368,24 +368,6 @@ function Edit-XmlNodes {
|
||||
}
|
||||
}
|
||||
|
||||
function Update-Project {
|
||||
param (
|
||||
[string] $projectPath,
|
||||
[string] $sign
|
||||
)
|
||||
|
||||
$file = switch($sign) { $true { $signKeyPath } default { $null } }
|
||||
$signed = switch($sign) { $true { ";SIGNED" } default { "" } }
|
||||
$constants = "CODE_ANALYSIS;TRACE$signed"
|
||||
$json = (Get-Content $projectPath) -join "`n" | ConvertFrom-Json
|
||||
$options = @{"warningsAsErrors" = $true; "xmlDoc" = $true; "keyFile" = $file; "define" = ($constants -split ";") }
|
||||
Add-Member -InputObject $json -MemberType NoteProperty -Name "buildOptions" -Value $options -Force
|
||||
|
||||
$json.version = GetNuGetVersion
|
||||
|
||||
ConvertTo-Json $json -Depth 10 | Set-Content $projectPath
|
||||
}
|
||||
|
||||
function Execute-Command($command) {
|
||||
$currentRetry = 0
|
||||
$success = $false
|
||||
|
||||
Reference in New Issue
Block a user