Here’s the image to my project structure. This is in Rider IDE
What I’ve noticed is that code seems to work under Assignment. However, I cannot add folders in it. I would like separate folders for Pocos, Services, etc.
You have the csharp file in a general solution folder. That won’t compile. Code files have to be in a project. If you want, you can add multiple projects and add references between those. Or add a folder to the project (the second Assignment node in this case).
You can 100% add folders to the project. Just right click, add, folder. The top cs file is under the solution not the project. Assignment at the top is the solution, the one below it with the c# logo is the project.
C# devs
null reference exceptions