dotnet / msbuild

The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
https://docs.microsoft.com/visualstudio/msbuild/msbuild
MIT License
5.24k stars 1.35k forks source link

Change in TrimEnd behavior on .NET Core 2.0 #1966

Open rainersigwald opened 7 years ago

rainersigwald commented 7 years ago

see https://github.com/dotnet/corefx/pull/18035#discussion_r110289282

$(PackagesDir.TrimEnd('/\'.ToCharArray()))

Seems to do the wrong thing on .NET Core 2.0 hosts. Related to a new overload of TrimEnd?

rainersigwald commented 7 years ago

Related: #1635, #1634

ericstj commented 7 years ago

I hit a similar problem, repro here: https://github.com/dotnet/corefx/pull/18306#discussion_r111433796