You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got a C# compiler error like this, in a project consuming the System.CommandLine package:
error CS0121: The call is ambiguous between the following methods or properties: 'ArgumentExtensions.LegalFilePathsOnly<TArgument>(TArgument)' and 'OptionExtensions.LegalFilePathsOnly<TOption>(TOption)'
I was able to fix that by upgrading my project from C# 7 to C# 7.3. I presume this corresponds to What's new in C# 7.3 item "Overload resolution now has fewer ambiguous cases."
Filing this in case anyone else has the same problem.
To reproduce
Visual Studio 2017 version 15.9.24 and .NET Core SDK 2.1.515.
I got a C# compiler error like this, in a project consuming the System.CommandLine package:
I was able to fix that by upgrading my project from C# 7 to C# 7.3. I presume this corresponds to What's new in C# 7.3 item "Overload resolution now has fewer ambiguous cases."
Filing this in case anyone else has the same problem.
To reproduce
Visual Studio 2017 version 15.9.24 and .NET Core SDK 2.1.515.
Source code:
Project:
The text was updated successfully, but these errors were encountered: