phmonte / Buildalyzer

A utility to perform design-time builds of .NET projects without having to think too hard about it.
MIT License
593 stars 94 forks source link

The SolutionDir property is different from the MSBuild output #148

Closed laurenceSaes closed 3 years ago

laurenceSaes commented 3 years ago

The SolutionDir property does not end with a directory separator. This is different than how MSBuild sets this property:

laurenceSaes commented 3 years ago

See also:

https://docs.microsoft.com/en-us/cpp/build/reference/common-macros-for-build-commands-and-properties?view=vs-2019

$(SolutionDir) | The directory of the solution (defined as drive + path); includes the trailing backslash '\'. Defined only when building a solution in the IDE.
-- | --
daveaglick commented 3 years ago

Great catch, thanks! I'm hoping to carve out some time later this week to merge Buildalyzer PRs and do a release.