efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Microsoft.EntityFrameworkCore.Tools.DotNet in 2.0.0-preview1 fails

Open stgeorge opened this issue 9 years ago • 5 comments

I upgraded my project to 2.0.0 preview 1 and one of my csproj file includes the following:

<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0-preview1-final" />

This line causes the entire project to fail to compile.

In msbuild output:

"Unexpected dependency 'xxx.csproj' with no version number.

In nuget restore output:

Unable to resolve 'xxx.csproj' for '.NETCoreApp,Version=v2.0'.

If I take it out, everything works but then I cannot use ef from dotnet.exe...

stgeorge avatar May 12 '17 02:05 stgeorge

I think this is a known issue that will be fixed in the next release. The workaround is to run dotnet restore on the project instead of letting VS restore packages.

bricelam avatar May 12 '17 02:05 bricelam

@divega We thought in triage that this was in the release notes, but I don't see it there: https://github.com/aspnet/EntityFramework/releases/tag/rel%2F2.0.0-preview1

Assigning to you to follow up getting it there or documenting somewhere else.

ajcvickers avatar May 15 '17 17:05 ajcvickers

@bricelam @ajcvickers I was not aware of the issue or workaround that should have been in release notes. Given where we are for preview2, do we still need to add this or should we close this? If the former, I am happy to edit the release notes of you give me the details.

divega avatar Jun 09 '17 20:06 divega

Clearing up milestone to get the answer in triage.

divega avatar Jun 13 '17 22:06 divega

Closing since we hopefully don't need this for preview2.

ajcvickers avatar Jun 19 '17 18:06 ajcvickers