Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch FormatException coming from Convert.ChangeType. (#1635)
String.TrimEnd has a new overload for a single char in .NET Core 2.0. However, when MSBuild encounters this new overload first, it throws a FormatException which is not caught - breaking the build. The fix is to catch the FormatException just like an InvalidCastException and continue searching the rest of the reflection MethodInfos for a match. Fix #1634
- Loading branch information