-Obsoleted FormatterAssemblyStyle in non-full .NET assemblies

-Tests
This commit is contained in:
James Newton-King
2017-02-18 19:15:38 +13:00
parent a1c5441e1d
commit 7a7027a779
8 changed files with 120 additions and 48 deletions

View File

@@ -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