Skip to content

Commit 7c92997

Browse files
committed
Do not emit debug symbols in release config.
Treat warnings as errors.
1 parent 9d47cdf commit 7c92997

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/Renci.SshNet.NETCore/project.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
{
22
"title": "SSH.NET",
33
"configurations": {
4-
"debug": { "buildOptions": { "define": [ "DEBUG", "TRACE" ] } },
5-
"release": { "buildOptions": { "define": [ "TRACE" ] } }
4+
"debug": {
5+
"buildOptions": {
6+
"debugType": "full",
7+
"define": [ "DEBUG", "TRACE" ]
8+
}
9+
},
10+
"release": {
11+
"buildOptions": {
12+
"debugType": "none",
13+
"define": [ "TRACE" ]
14+
}
15+
}
616
},
717
"buildOptions": {
818
"outputName": "Renci.SshNet",
@@ -15,8 +25,9 @@
1525
"../Renci.SshNet/Properties/AssemblyInfo.cs"
1626
]
1727
},
28+
"optimize": true,
1829
"xmlDoc": true,
19-
"optimize": true
30+
"warningsAsErrors": true
2031
},
2132
"frameworks": {
2233
"netstandard1.3": {

0 commit comments

Comments
 (0)