Where's NuGet manager console in Rider IDE?
Asked Answered
G

7

39

I am new to .NET platform. From time to time, I had problems with Visual Studio and I decided to use Rider. It encouraged me again (I have been using JetBrains products for 2 years). But I can not find the NuGet console (which is so called in Visual Studio).

Where is it?

Grazing answered 17/3, 2017 at 7:33 Comment(1)
NuGet console in VS is based on PowerShell and Rider doesn't support it right now. It will be implemented in future versions (probably after official release).Shavon
I
14

It's not accessible yet. Please vote this issue https://youtrack.jetbrains.com/issue/RIDER-435

Indulgent answered 21/1, 2018 at 8:23 Comment(3)
NuGet console in VS is based on PowerShell and Rider doesn't support it right now. It will be implemented in future versions.Indulgent
I'm new to the .NET world. From what I can tell Entity Framework is a library to make interaction with data stores easier. What does this have to do with an IDE supporting a package manager's shell? Am I missing something?Purism
@Purism Yes. You must use package-manager console or GUI written for that.Grazing
M
10

It is available since Rider 2018.1.
Please see JetBrains' blog post about installation: https://blog.jetbrains.com/dotnet/2018/04/06/entity-framework-support-rider-2018-1/

enter image description here

P.S. tested on Rider 2020.2.1.

Mayest answered 27/7, 2020 at 3:20 Comment(5)
its not supported in 2020.2. I created a asp.net core solution and installed ef. Tools/Entity Framework does not exist.Measured
@Measured I'm using Rider 2020.2.1 and it's available. Did you try the right-clicking the project in the Explorer view? Please see my edited answer with an image.Mayest
@Noam_Gal I get the confusion: I'am using Microsoft.EntityFrameworkCore v3.1.7. You are using Microsoft.EntityFramework. Rider is not supporting the core version of EntityFramework.Measured
@Measured you are right. for Core there's no such solution (yet), only this article: blog.jetbrains.com/dotnet/2017/08/09/…Mayest
If you did not found the option after right-clicking, first you must install the EntityFramework package and then you will see all the options for Entity FrameworkDownandout
B
8

Although Rider has now added the UI for migration, unfortunately, if you use the latest dotnet feature the UI doesn't work.

For example, I created the project without Startup class file, the UI won't let me continue:

enter image description here

enter image description here

But I tried these commands which works:

dotnet tool install --global dotnet-ef

# You can type the DbContext manually now!
dotnet ef migrations add 'initial' --project src/IdentityServer/IdentityServer.csproj --context PersistedGrantDbContext

enter image description here

Then I execute:

dotnet ef database update --project src/IdentityServer/IdentityServer.csproj --context ConfigurationDbContext

Now the database updated with all the tables there: enter image description here

Backpack answered 8/7, 2022 at 8:56 Comment(0)
O
5

If you need to run entity framework commands such as

dotnet ef migrations add "initialSetup"

Then go to your terminal Alt+f12 or double-shift and type “terminal”. Then run:

dotnet tool install --global dotnet-ef

And then (making sure you're in your project directory):

dotnet ef migrations add "initialSetup"
Ordinary answered 3/4, 2022 at 16:4 Comment(0)
A
4

You Can use PowerShell on Windows "Where Your DbContext is" Like this:

dotnet ef


dotnet ef migrations add [Name]

Airdrie answered 8/5, 2019 at 10:54 Comment(5)
There is nothing Like NPC out of VS So You Should find an alternative to your commands inside windows powerShellAirdrie
Who gave a -1 for this answer? and why?Measured
this is a roughly equivalent method of invoking the same/similar commands but the syntax is different and working through problems is also differentBertiebertila
Worked for me in linux using the command "dotnet ef database update" for db updates under the project folderNadler
This commands must be used under the project folder, not DbContext folderJaquith
M
0

They haven't implemented the Package manager console yet. So you will have to use Visual studio for that

Milzie answered 30/12, 2021 at 18:11 Comment(0)
C
-4

You can use terminal toolwindow. Or NuGet manager (GUI)...

Curren answered 17/3, 2017 at 7:44 Comment(1)
I know where I can open terminal. But NuGet console is different(which exists in Visual Studio)Grazing

© 2022 - 2024 — McMap. All rights reserved.