Przeglądaj źródła

CSharp: Add 'warnaserror:...' to v142 flag table for VS

This allows listing the warnings that must be flagged as errors.
For example:

    target_compile_options(proj PRIVATE "/warnaserror:1998,4014")
Francois Keith 4 lat temu
rodzic
commit
ee78391c09
1 zmienionych plików z 11 dodań i 0 usunięć
  1. 11 0
      Templates/MSBuild/FlagTables/v142_CSharp.json

+ 11 - 0
Templates/MSBuild/FlagTables/v142_CSharp.json

@@ -270,6 +270,17 @@
     "value": "",
     "flags": []
   },
+  {
+    "name":  "WarningsAsErrors",
+    "switch": "warnaserror:",
+    "comment": "",
+    "value": "",
+    "flags": [
+      "UserValue",
+      "UserRequired",
+      "CommaAppendable"
+    ]
+  },
   {
     "name":  "WarningLevel",
     "switch": "warn:0",