© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•12mo ago•
20 replies
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.
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 
C:\Users\{user}\RiderProjects\Learning 


I just switch to

C:\Users\{user}\RiderProjects\Learning\Learning 
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

csproj not found in Rider
C#CC# / help
4y ago
Super noob - Trying to add/create a migration in VSCode
C#CC# / help
3y ago
❔ Project is not specified on Rider
C#CC# / help
4y ago
Project Subfolder Remains Hidden in Rider
C#CC# / help
11mo ago