Merge pull request #589 from PowerShell/werror
Treat C# warnings as errors
This commit is contained in:
commit
23a83184ff
@ -7,6 +7,9 @@
|
||||
"frameworks": {
|
||||
"netstandard1.5": {
|
||||
"imports": [ "dnxcore50" ],
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.0.0-rc3-23819",
|
||||
"System.Security.SecureString": "1.0.0-*"
|
||||
|
@ -15,6 +15,7 @@
|
||||
"netstandard1.5": {
|
||||
"imports": [ "dnxcore50" ],
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true,
|
||||
"define": [ "_CORECLR" ]
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -4,6 +4,7 @@
|
||||
"authors": [ "garretts", "andschwa" ],
|
||||
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true,
|
||||
"allowUnsafe": true
|
||||
},
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
"authors": [ "garretts", "andschwa" ],
|
||||
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true,
|
||||
"allowUnsafe": true
|
||||
},
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
"authors": [ "sevoroby", "andschwa" ],
|
||||
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true,
|
||||
"allowUnsafe": true
|
||||
},
|
||||
|
||||
|
@ -3,6 +3,10 @@
|
||||
"version": "1.0.0-*",
|
||||
"authors": [ "andschwa" ],
|
||||
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true
|
||||
},
|
||||
|
||||
"configurations": {
|
||||
"Linux": {
|
||||
"compilationOptions": {
|
||||
|
@ -388,7 +388,7 @@ OPTIONS
|
||||
this.currentPowerShell.Invoke(null, settings);
|
||||
}
|
||||
}
|
||||
catch (IncompleteParseException e)
|
||||
catch (IncompleteParseException)
|
||||
{
|
||||
incompleteLine = true;
|
||||
cmd = cmd.Trim();
|
||||
|
@ -5,6 +5,7 @@
|
||||
"authors": [ "andschwa" ],
|
||||
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true,
|
||||
"emitEntryPoint": true
|
||||
},
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
"authors": [ "garretts", "andschwa" ],
|
||||
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true,
|
||||
"allowUnsafe": true
|
||||
},
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
"authors": [ "garretts", "andschwa" ],
|
||||
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true,
|
||||
"allowUnsafe": true
|
||||
},
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
"authors": [ "garretts" ],
|
||||
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true,
|
||||
"allowUnsafe": true
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user