Commit 7234bbe
authored
[xamlc] enable for $(Configuration) names like ReleaseProd (#14638)
Context: #14591 (comment)
In testing a customer project, I found that using a non-standard
`$(Configuration)` name like `ReleaseProd` disables XamlC.
In a30e243, we added a check for `$(Configuration)` to be exactly
`Release`. Let's invert this check to be `!= Debug`. I also added a
test to verify this works.
This seems like a better default for customers, as it seems a lot
worse for a `ReleaseProd` build to have XamlC off than a `DebugProd`
build to accidentally have XamlC on.
Asking around, but the .NET SDK doesn't appear to do anything special
for `$(Optimize)` and `$(DebugSymbols)` related to `$(Configuration)`:
https://github.com/dotnet/sdk/blob/7d23e9d3e4aad58a5b497d8d91a50ffdf148b238/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.props#L46-L541 parent 0c5a52d commit 7234bbe
File tree
2 files changed
+17
-6
lines changed- src/Controls
- src/Build.Tasks/nuget/buildTransitive/netstandard2.0
- tests/Xaml.UnitTests/MSBuild
2 files changed
+17
-6
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
262 | | - | |
| 266 | + | |
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
268 | | - | |
| 272 | + | |
| 273 | + | |
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
272 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
273 | 280 | | |
274 | 281 | | |
275 | | - | |
276 | 282 | | |
277 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
278 | 289 | | |
279 | 290 | | |
280 | 291 | | |
| |||
0 commit comments