Bladeren bron

Do not emit debug symbols in release config.
Treat warnings as errors.

Gert Driesen 9 jaren geleden
bovenliggende
commit
7c929975b9
1 gewijzigde bestanden met toevoegingen van 14 en 3 verwijderingen
  1. 14 3
      src/Renci.SshNet.NETCore/project.json

+ 14 - 3
src/Renci.SshNet.NETCore/project.json

@@ -1,8 +1,18 @@
 {
   "title": "SSH.NET",
   "configurations": {
-    "debug": { "buildOptions": { "define": [ "DEBUG", "TRACE" ] } },
-    "release": { "buildOptions": { "define": [ "TRACE" ] } }
+    "debug": {
+      "buildOptions": {
+        "debugType": "full",
+        "define": [ "DEBUG", "TRACE" ]
+      }
+    },
+    "release": {
+      "buildOptions": {
+        "debugType": "none",
+        "define": [ "TRACE" ]
+      }
+    }
   },
   "buildOptions": {
     "outputName": "Renci.SshNet",
@@ -15,8 +25,9 @@
         "../Renci.SshNet/Properties/AssemblyInfo.cs"
       ]
     },
+    "optimize": true,
     "xmlDoc": true,
-    "optimize": true
+    "warningsAsErrors": true
   },
   "frameworks": {
     "netstandard1.3": {