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?
![](https://utfs.io/f/efd2d85e-5937-49b2-8b12-62ea0a906492-1nq2cb.png)
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
![](https://utfs.io/f/24593201-bd3f-422b-b773-0f7e0581aebc-1nq2cb.png)
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
![](https://utfs.io/f/44044f8f-8de3-4643-9573-ecc5879c3039-1nq2cb.png)
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