Multi-project Visual Studio template with solution folders containing files

笑着哭i 提交于 2019-12-04 12:36:18

The VSProjectTemplate don't be able to do this. You just can add SolutionFolders with Projects and Files inside the projects. In my case, i did resolved creating another project in my solution to group that files of solution Folders and then modified my solution to refer the files on the new projects and not from the solution folder, and then exporting the complete solution.

Solution Folder 1
    Project 1.csproj
        File 1.cs
    Project 2.csproj
        File 2.cs

Solution Folder 2
    File 3.cs
    Project 3.csproj
        File 4.cs
    Project 4.csproj
        File 5.cs

I have created a new project named "Project 5" inside the "Solution Folder 2" and then did access files on them.

Solution Folder 2  
    Project 3.csproj
        File 4.cs
    Project 4.csproj
        File 5.cs
    Project 5.csproj
        File 3.cs

This did the template create the all solution folders, projects and files of the solution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!