0

I am testing EF Core to see if it might be suitable for use in a new project. The development environment is as follows:

Visual Studio 2017 (15.4)

I create a new class library (C#) targeting the Dot Net full framework version 4.7 and then save the project after which I open up the Nuget package manager and type in the following command...

install-package Microsoft.entityframeworkcore.sqlserver

Nuget then installs all of the bits that it determines the project requires. When I then look at the references added I see the following;

enter image description here

Looking at the properties of those references marked with a warning I note that there appears to be no version information associated with them. My first thought was that this might be an issue with targeting Dot Net 4.7 so I tried the same against Dot Net 4.6.2 which produced similar results, although with some different Dll's. In both cases the projects built successfully.

Has anyone else seen this or knows what the cause / solution might be?

Dom Sinclair
  • 2,458
  • 1
  • 30
  • 47

1 Answers1

0

Include the NetStandard.Library.NetFramework NuGet package, as described here.

Kristoffer Jälén
  • 4,112
  • 3
  • 30
  • 54
  • Had hoped that this might turn out to be the solution, but it would seem that it's not, at least not in this case. Going to try this on a couple of VM's whilst I work through the list of issues on GitHub to see if there is any mention of it there. – Dom Sinclair Oct 18 '17 at 12:13
  • It'll work if you install a previous version that supports .NET Framework 4.6.1. `Install-Package Microsoft.EntityFrameworkCore.SqlServer -Version 1.1.3`. – Kristoffer Jälén Oct 18 '17 at 13:54