NuGet Package Manager Console Support

Answered

Rider was able to load up my workplace project without changes, but it lacks support for the NuGet Package Manager Console. We use this console to handle Code First migrations in Entity Framework. It would be great if Rider provided similar functionality.

3 comments
Comment actions Permalink

I hadn't realized this was missing until today when I tried to create a new EF migration. We use the console to execute the `Add-Migration` and `Update-Database` commands. Does Rider offer an alternative for this?

0
Comment actions Permalink

Unfortunately, It is not possible we do it in current release. Please vote this issue https://youtrack.jetbrains.com/issue/RIDER-435

@Dwilches, is it possible to do the same by editing csproj directly? (F4 on project in SolutionExplorer)

Other possibility for dotnetcore projects would be calling dotnet cli
http://benjii.me/2016/05/dotnet-ef-migrations-for-asp-net-core/
Not sure if it will work on non-windows thou.

0
Comment actions Permalink

There is workaround/solution for getting EF Core Tools i Rider's terminal. You need manually add in your .csproj file following section:

<ItemGroup>
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.1" />
</ItemGroup>

After it you need to go to Terminal in Rider and change working directory in terminal to your project's directory and run dotnet restore. After it you should be able to run EF command in terminal but in slightly different way than in VS package manager console. To get help try to run dotnet ef --help in Terminal.

 

1

Please sign in to leave a comment.