-
-
Notifications
You must be signed in to change notification settings - Fork 837
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
Possible MissingMethodException
caused by System.ValueTuple
#1118
Comments
Are you able to recreate this locally @alsami, and get a |
@alistairjevans will get a sample repo ready later today. |
So I just looked into it a bit and interestingly there is no way to make it throw an error. I double checked if that problem in general does exist and created a small repository that already fails to compile without the uncommented package-reference in the csproj file. I then thought it must be somewhat included through some dependency that we have on |
Perhaps it's the netstandard2.0 reference? Or something to do with this comment in the issue you linked? |
I figured it out now. If you uncomment the reference to Not sure why though, I can't find it as a dependency of the package, not even in the peer dependency of that said package. Closing this, sorry for the confusion! :) |
No probs, good to get to the bottom of stuff like this. |
As discussed here using
System.ValueTuple
requires the packageSystem.ValueTuple
to be referenced when targetingnet461
As @alistairjevans stated in the discussion linked above, we are already using it and not getting any compiler errors (which should not be the case for
net461
).Here also an issue on the roslyn repository that states, that this missing include was added with
net471
.Easiest and safest fix would be to have a conditional package-reference
That does not explain why there is no compiler error though.
The text was updated successfully, but these errors were encountered: