mono / monodevelop

MonoDevelop is a cross platform .NET IDE
http://www.monodevelop.com
2.84k stars 1.02k forks source link

[Core] Convert strings to paths when calling methods on the string #9442

Closed mrward closed 4 years ago

mrward commented 4 years ago

An MSBuild expression such as the following will fail since the path is not converted to a native path when not on Windows.

$(SrcRelativeProjectDirectory.IndexOf('/'))

Arguments passed were converted but the original string was not. To match MSBuild's behaviour the conversion of the slash characters is only done if the directory exists.

Fixes VSTS #1028961 - MSBuild Properties are not fully evaluated causing build to fail