novotnyllc / MSBuildSdkExtras

Extra properties for MSBuild SDK projects
MIT License
348 stars 42 forks source link

Failures with GetDirectoryName #273

Closed bstordrup closed 3 years ago

bstordrup commented 3 years ago

When building on a TeamCity configuration, I sometimes get this error:

The expression "[System.IO.Path]::GetDirectoryName('')" cannot be evaluated. The path is not of a legal form.

In TeamCity, I use the MSBuild runner, and the MSBuild.exe is found in VS 2017 Community edition.

clairernovotny commented 3 years ago

The 3.x of the Extras has only been tested with VS 2019 and up. Please use 2.x on lower versions of VS.