C#C
C#11mo ago
Faker

✅ Project not found when trying to add migration in rider

Hello guys, whenever I try to add a migration in rider, using its terminal, I get the following error:

No project was found. Change the current working directory or use the --project option.


Can someone explain what this error is due to please.

What I tried, is I switch to the folder where my dbContext is, for example in a folder called data, even then, I get this error.

The thing which makes it work is, initially I'm in the solution directory, something like that:

C:\Users\{user}\RiderProjects\Learning

I just switch to

C:\Users\{user}\RiderProjects\Learning\Learning

Then it worked. So I have a few questions, initially we are always in the solution folder? I'm confused, how does it differ, like Learning/Learning are both the same things ? why there aren't name conflicts?

Second thing, does rider has a package manager console like visual studio where we can omit the dotnet command ?

Last question where is the .csproj found in rider please, I can't see it
C0600EA8-C352-4646-99AC-416C3F0376EA.png
Was this page helpful?