msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

In strict mode do not allow undefined variables to return empty string

Open chamons opened this issue 6 years ago • 2 comments

The number of times I meant $(Foo) vs @(Foo) and burned 10 minutes debugging suggests this is a common mistake.

chamons avatar Nov 30 '18 17:11 chamons

Love it! This has been a problem for us with large build refactors that change the props import sequence, like migration to SDK-style projects and Central Package Management. We have to just spot-check some and check the conceptual props import sequence makes conceptual sense. One potential impediment in our build, I found that pre-restore evaluations can run into this too easily if a props file is loaded that depends on an expected nuget package's props. Hope this is related; apologies if I'm missing some subtlety or better solutions here.

JustinSchneiderPBI avatar Feb 12 '24 20:02 JustinSchneiderPBI

Marking as an idea for #1777

stan-sz avatar Feb 13 '24 09:02 stan-sz