-
Notifications
You must be signed in to change notification settings - Fork 1.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
Found conflicts between different versions of the same dependent assembly that could not be resolved. #2478
Comments
any solution for this warning? i am facing in .net core 2.0.2 |
+1 same here |
same here |
same here in 2.2.300 |
I'm facing the same issue in .NET Core 3.1.401.
If I change the package reference from
to
the warnings disappear |
thank you, @stevo-knievo! your solution worked for me as well |
This time I solved it differently :) I added the
.NET Core SDKs installed: 3.1.403 |
In my case, the problem appears to occur when a nuget package update is not fully up-to-date. In particular, VBCSCompiler and/or MSBuild.exe lock files that prevent package restore from removing older versions of .NET Framework packages.config restores. Another way this can occur is if you go to "Manage Packages for this Solution" and you have only one of your "Package source:" selected when you select Update. You need to make sure that when you Update packages, that you have "Package source: All" selected, like below. Once your solution is messed up, there are a couple of options
The painful solution is to:
These first two steps are needed because .NET Framework locks any dll files it loads, and MSBuild.exe is a .NET Framework application. This will prevent Steps three to five "clear the cache", as it were. The next step is to verify that in your legacy App.config and legacy .csproj file that the References point to the right version in the old-style |
my project is on top of .NET Core (1.0.4). when I build solution (it consist four projects) using dotnet
build command
I get following warnings:I am wondering how t get rid of these warning messages. any idea?
PS: Here is the
csproj
files:MyProject.Core:
MyProject.Domain:
MyProject.Web:
MyProject.Test:
The text was updated successfully, but these errors were encountered: