C
C#9mo ago
aria

VS Project config questions

1. Is it bad to enable "Place solution and project in the same folder"? It sounds neater to me but why is it an option? 2. "Do not use top level statements". What's that mean? what's a top level statement? why enable/leave this disabled?
No description
No description
4 Replies
Jimmacle
Jimmacle9mo ago
1. i don't bother, because it will cause issues if you ever want to add additional projects 2. https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/top-level-statements not only do i not put the project in the same folder, i add another src level so all project folders are in a src directory
aria
ariaOP9mo ago
i did realise this, like if i wanted to add a frontend with angular then throwing this in would be a good idea and helps it all stay separate how come?
Jimmacle
Jimmacle9mo ago
it makes the overall repository structure better usually the top level of a repo will have src, docs, examples, etc
aria
ariaOP9mo ago
ahhh ok neat
Want results from more Discord servers?
Add your server