This commit is contained in:
James Newton-King
2015-08-12 22:21:02 +12:00
parent 6f088e4912
commit f6b8d8dc98
+1 -1
View File
@@ -343,7 +343,7 @@ function Update-Project {
$file = switch($sign) { $true { $signKeyPath } default { $null } }
$json = (Get-Content $projectPath) -join "`n" | ConvertFrom-Json
$options = @{"warningsAsErrors" = $true; "optimize" = $true; "keyFile" = $file; "define" = ((GetConstants "dotnet" $sign) -split ";") }
$options = @{"warningsAsErrors" = $true; "keyFile" = $file; "define" = ((GetConstants "dotnet" $sign) -split ";") }
Add-Member -InputObject $json -MemberType NoteProperty -Name "compilationOptions" -Value $options -Force
ConvertTo-Json $json -Depth 10 | Set-Content $projectPath