C
C#8mo 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
Jimmacle8mo 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
ariaOP8mo 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
Jimmacle8mo ago
it makes the overall repository structure better usually the top level of a repo will have src, docs, examples, etc
aria
ariaOP8mo ago
ahhh ok neat
Want results from more Discord servers?
Add your server