Open SirwanAfifi opened 7 years ago
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.
/usr/local/share/dotnet/sdk/3.1.401/Microsoft.Common.CurrentVersion.targets(2084,5): warning MSB3277: Found conflicts between different versions of "Microsoft.EntityFrameworkCore" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [/Users/stefan/Development/Prototypes/dotnet-migrations-azure-functions/src/Persistence.Migrations/Persistence.Migrations.csproj]
/usr/local/share/dotnet/sdk/3.1.401/Microsoft.Common.CurrentVersion.targets(2084,5): warning MSB3277: Found conflicts between different versions of "Microsoft.EntityFrameworkCore.Relational" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [/Users/stefan/Development/Prototypes/dotnet-migrations-azure-functions/src/Persistence.Migrations/Persistence.Migrations.csproj]
If I change the package reference from
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
to
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.7" />
the warnings disappear
thank you, @stevo-knievo! your solution worked for me as well
This time I solved it differently :)
I added the Microsoft.EntityFrameworkCore.Relational
dependency.
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.9">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.9" />
.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:
VBCSCompiler
and MSBuild.exe (32-bit)
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 Access to the path 'DotNetCompilerPlatformTasks.dll' is denied.
errors in steps 3-5.
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 packages
folder. Visual Studio "Find In All Files" will not find these old version numbers for some reason.
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: