I’ve already read through pretty much every other issue regarding EF in that was posted in the past 2 years. I have had no problems downloading other packages, it’s only Entity Framework that will not install for me.
I’ve even tried installing the latest version of Nuget and using it’s tool inside of my project directory to restore the packages -after- I added a this line to my .csproj:
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.2" />
First I tried this command:
which output this:
C:\Path\To\My\Project>dotnet restore Restore completed in 100.41 ms for C:\Path\To\My\Project\TestNuget.csproj. Restore completed in 68.84 ms for C:\Path\To\My\Project\TestNuget.csproj.
and results in this:
> dotnet ef No executable found matching command "dotnet-ef"
So then I tried this (using the latest version of Nuget as of today’s date):
nuget restore Example.csproj
which outputs this:
MSBuild auto-detection: using msbuild version '22.214.171.124198' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin'. Committing restore... Tool assets file has not changed. Skipping assets file write. Path: C:\Path\ToNuget\.nuget\packages\.tools\microsoft.visualstudio.web.codegeneration.tools\2.0.3\netcoreapp2.0\project.assets.json Restore completed in 139.95 ms for C:\Path\To\User\source\repos\Example\Example\Example.csproj. Committing restore... Assets file has not changed. Skipping assets file writing. Path: C:\Path\To\User\source\repos\Example\Example\obj\project.assets.json Restore completed in 113.51 ms for C:\Path\To\User\source\repos\Example\Example\Example.csproj. NuGet Config files used: C:\Path\To\User\AppData\Roaming\NuGet\NuGet.Config C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.Fallback.config Feeds used: C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\ https://api.nuget.org/v3/index.json
Which has the same results.
I’m not at all sure what the problem is, everything I’m reading online, including https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet
is stating that all you have to do is a alter the .csproj file and restore using the dotnet/nuget package managing tool, but this seems to do absolutely nothing to my project, and dotnet-ef.exe is still no where to be found.