-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
net45
target causes major build issues in .NET Framework 4.7 projects
#719
Comments
Could you please explain in some more detail just what those issues are? (P.S.: We've already had several issues asking for certain targets and it's already being considered, so I will likely close this issue as a duplicate.) |
The warning is below. It could not be resolved with a binding redirect or by adding the latest System.ValueTuple nuget to our projects. |
Must be something with your specific setup. Make sure you have the latest versions of everything (VS, NuGet, .NET Framework). It might also help to use Finally, please note that this type of problem cannot be fixed for everyone on Moq's side. It has to be fixed on the .NET & tooling side. The Btw. here's a small C# project which compiles just fine (using VS 15.8.8 or MSBuild 15.8.169.51996) , without any warnings or errors. Feel free to use it as a starting point to track down & fix your versioning issue.
|
That's disappointing. Our solution has 90 projects and uses 30-40 nuget packages. We still use many non-nuget DLLs. But we aren't unique. Not every project out there is created perfectly clean like your example. Many company's projects are slowly migrating from pre-nuget days using Framework to a future goal of using nuget and netstandard. And along the way, they have a lot of challenges with package dependencies and tooling issues. I'm sure there are many other users who, like us, can't use the latest version of moq because of these errors. Ideally, a nuget package has few/no dependencies. |
Of course not every code base is as pristine as the little example I posted above. I posted it only to demonstrate that the claim, "the current 4.5 target causes major build issues in Framework 4.7 projects" simply doesn't hold true in general. I am suggesting that if things don't work in your case, there must be some other factor involved, and it is important to know what that is before we blindly apply a fix. I am not going to introduce a |
net45
target causes major build issues in .NET Framework 4.7 projects
@bassettb - I changed Moq such that it no longer needs to depend on |
@bassettb - I just pushed Moq 4.10.1 to NuGet. This version no longer depends on System.ValueTuple, and dependencies on System.* NuGet packages have been upgraded to the latest versions. Consider giving it a try. |
Moq should include a build target for .Net Framework 4.7. This target would not have a dependency on System.ValueTuple. The current 4.5 target causes major build issues in Framework 4.7 projects.
The text was updated successfully, but these errors were encountered: