C
C#3mo 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
Jimmacle3mo 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
aria3mo 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
Jimmacle3mo ago
it makes the overall repository structure better usually the top level of a repo will have src, docs, examples, etc
aria
aria3mo ago
ahhh ok neat
Want results from more Discord servers?
Add your server
More Posts
(Blazor) I'm having trouble accessing a variable inside a parent component.I'm trying to access a simple bool in a parent component that shows when my side bar has been collap✅ There is already an open DataReader associated with this Command which must be closed firstI'm currently developing a Point Of Sale software in winforms c#. While working on cash management mC# Integration with MulesoftWe are looking to re-do an application in microservice style and biz req is pushing Mulesoft for thaVisual Studio opening search results in the search dock, not main windowKinda unrelated to C#, but since a few updates ago Visual Studio started behaving weirdly for me. Logic on properly deploying thingsSo I've been getting into a more professional workflow (id say) with better github practices, workinSystem.AggregateException: 'Some services are not able to be constructedI stuck with this problem and don't understand how to fix it: InvalidOperationException: Unable to rMAUI. How to remove the Title Bar?I need to remove the top panel so that the user can not use the buttons on it.Help me sort out perhaps badly done folder/solution structure so I can add a shared Class LibraryOk, so I have two solutions which must be separate so I can execute them both at the same time so thUsing Roslyn in WebAssembly, error creating an AdHocWorkspaceHello, this could be a really convoluted use case and I don't know what sort of support is expected SignalR Blocking Issue: Infinite Wait When Calling a Method from ClientHello here is a Hub I implemented, the goal is to make a board game turn system, the most important