دنبال کننده ها

۱۳۹۶ اسفند ۱۲, شنبه

directory structure - Can I Restructure a Visual Studio Solution?

[ad_1]



I am creating an Angular Single Page Application using the SPA project templates (Use the Single Page Application templates). I created my top level parent folder which I want my Visual Studio Solution to reside within and then using the command line used the template to generate a .csproj file which I opened in Visual Studio, saved and this created my .sln file. The folder structure currently is like this:



Solution folder
.git
.vs
bin folder
ClientApp folder
node_modules folder
obj
...other VS Project files/folders
MyProject.csproj
MyProject.sln


As the project matures I now want to add further Visual Studio Projects. I feel it would be good to have all of the files/folders for each Visual Studio Project within their own folder. This would give me the following structure:



Solution folder
.git
.vs
Project 01 folder
bin folder
ClientApp folder
node_modules folder
obj
...other VS Project files/folders
Project 02 folder
bin folder
ClientApp folder
node_modules folder
obj
...other VS Project files/folders
MyProject.csproj
MyProject.sln


If I try to add another VS Project to my current Solution I could select my top level Solution folder for its location but this would leave my initial VS Project files/folders still loose in the Solution folder.



Is it at all possible to restructure my current Solution without breaking any references or upsetting GIT?




[ad_2]

لینک منبع