Commit df02314
committed
Fix #2581: Copy WarningsAsErrors setting to generated project
Add WarningsAsErrors to SettingsWeWantToCopy array in CsProjGenerator
so that NuGet restore warnings configured in the source project are
preserved in the generated benchmark project and fail the build.
Added test WarningsAsErrorsSettingGetsCopied() to verify the fix.1 parent a3b4236 commit df02314
File tree
2 files changed
+23
-0
lines changed- src/BenchmarkDotNet/Toolchains/CsProj
- tests/BenchmarkDotNet.Tests
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
184 | 206 | | |
185 | 207 | | |
186 | 208 | | |
| |||
0 commit comments