Efcore: EFCore in DotNetStandard2.0 Library contains not found dependencies

Created on 28 Jul 2017  路  5Comments  路  Source: dotnet/efcore

I have EFCore installed in a DotNetStandard2.0 CL and everything is working fine except I get a warning on Build regarding not found packages and resolution has to take place

This is the warning I get on Build

Severity    Code    Description Project File    Line    Suppression State
Warning NU1603  Microsoft.Extensions.Primitives 2.0.0-preview1-final depends on 
System.Runtime.CompilerServices.Unsafe (>= 4.4.0-preview1-25219-04)
but System.Runtime.CompilerServices.Unsafe 4.4.0-preview1-25219-04 was not found. 
An approximate best match of System.Runtime.CompilerServices.Unsafe 4.4.0-preview1-25305-02 
was resolved.   

Installing System.Runtime.CompilerServices.Unsafe explicitly fixes warning
Install-Package System.Runtime.CompilerServices.Unsafe -Pre

Steps to reproduce

Create New DotNetStandard2.0 CL
Add Microsoft.EntityFrameworkCore.SqlServer
Run Build

Further technical details

EF Core version: 2.0.0-preview2-final
Database Provider: Sql Server
Operating system: Windows 10 Pro
IDE: VS 2017 Prevew 3

closed-question

Most helpful comment

Check out https://github.com/aspnet/EntityFramework/issues/8923#issuecomment-310431600
In preview2-final there is no SqlServer.Design package. Please remove that line and try again.

All 5 comments

Can you share your csproj file and Nuget.config?

Certainly

````


Exe
netcoreapp2.0







````

Check out https://github.com/aspnet/EntityFramework/issues/8923#issuecomment-310431600
In preview2-final there is no SqlServer.Design package. Please remove that line and try again.

After removing the stale package restore works fine for me.

That did it, thanks

Was this page helpful?
0 / 5 - 0 ratings