csproj not found in Rider
Hi, I just started coding in C#, following an tutorial from CodeWithPraveen, I have created an main console programm as well as a subfolder with 4 different classes. I continued by using one class in my main console programm (after using dotnet add reference) but i get an "has missing dependencies" on the main csproj file aswell as an NU1105 error when trying to run the program.
I tried some workarounds / fixes, that i found online but none of them helped so i hope someone can maybe help me thank you
13 Replies
How did you create this project?
file -> new solution -> console application
the selected one, do i have to use another one?
No, this seems fine
this is the entire error, weird thing is that i cant see the second csproj file from the subfolder in the rider structure preview
You have multiple
.csproj
files?
In the same directory?one in the main folder and one in an subfolder containing the classes
Ah, that's the issue
You can't be nesting projects
should they be on the same layer?
That's the structure
A solution can have multiple projects
A project cannot have nested projects
oh
ok i will test thx ❤️
When creating a new project with Rider, do not check the option to put the csproj on the solution level
Then, if you want to add more projects, do it by right-clicking the solution in the solution explorer, then
Add