-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MissingMethodException when using ValueTuples defined in netstandard2.0 lib from net461 #22903
Comments
Thanks for the detailed repro steps. I think there is indeed a problem, but I don't think it's with the compiler. The compilation of the client project (targeting net461) receives a reference to |
I confirmed that the project and compiler behaviors are by design (this solution should build successfully). Can you confirm that you have .NET Framework 4.7.1 installed? |
.NET Framework 4.7.1 ships with a fix that affects ValueTuple type unification. More details in the announcement. |
@jcouv I'm seing this issue too, as of today (Windows Update installed stuff overnight). Same .NET version as @Soarc reported above. The announcement you linked provides little info, but links to this document where two workarounds are proposed:
The first is not an option for us at the moment, because the production environment is running 4.6.1 and will be for the foreseeable future. When I attempt the second, I find no binding redirects in my app.config to start with. I tried removing Any advice? First build warning:
Second build warning:
|
Why is this issue closed? One year later I'm still experiencing it calling a method defined in Standard 2.0 from from.NET 4.6.2 |
CC @terrajobst |
Microsoft Visual Studio 2017 professional, 15.4.1
Steps to reproduce
I've created sample project that reproduces issue
https://github.com/Soarc/RoslynCompilerIssue
Expected Behavior:
At least should not compile with CS8137 error, until ValueTuples reference added to net461 project.
Actual Behavior:
Throws MissingMethodException at runtime.
BTW my visual studio throws exception in very weird manner, and actual exception can only be seen in output window.
The text was updated successfully, but these errors were encountered: