You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried out the new SLNX format for solution files within VS Preview Version 17.14.0 Preview 2.0.
I really like the new format since it is way easier to modify. However I'm still trying to figure out how I can organize my project from within Visual Studio without any clutter in mit GitHub repository.
For example. lets say I want all my code to be displayed within a src folder and all my tests within a test folder.
So I add two new solution folders via the context menu:
Now I move my project to the src folder and create a new one within the tests folder. In VS it looks like this:
but how can I achieve this within VS? Via command line I would do mkdir src then mkdir tests create the projects within this files and then call dotnet sln add path_to_csproj
The text was updated successfully, but these errors were encountered:
Solution Folders as a concept do not necessarily match the file-system directories.
When adding projects using dotnet sln add, the CLI automatically generates solution folders based on the path to the project. However, these concepts stay decoupled: moving the files in the filesystem will not update the solution file, nor the other way around.
I would suggest removing the projects from the solution file, moving them to where you want them to be, and then adding the new project paths.
Hi there,
I've tried out the new SLNX format for solution files within VS Preview Version 17.14.0 Preview 2.0.
I really like the new format since it is way easier to modify. However I'm still trying to figure out how I can organize my project from within Visual Studio without any clutter in mit GitHub repository.
For example. lets say I want all my code to be displayed within a src folder and all my tests within a test folder.
So I add two new solution folders via the context menu:
Now I move my project to the src folder and create a new one within the tests folder. In VS it looks like this:
However on the filesystem you'll get:
The SLNX file will look like this:
but how can I achieve this within VS? Via command line I would do
mkdir src
thenmkdir tests
create the projects within this files and then calldotnet sln add path_to_csproj
The text was updated successfully, but these errors were encountered: