Project Order in Visual Studio Solution

后端 未结 6 1054
我在风中等你
我在风中等你 2021-02-01 01:13

In Visual Studio 2008, what determines the order in which projects appear within a solution folder? It\'s not alphabetical order, nor is it build order.

I cannot find an

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 01:32

    The dotnet sln add command reorder all projects in all folders in solution for me.

    Simply add at least one project with the following command to your solution:

    dotnet sln $Solution add --solution-folder $SolutionFolder $projectPath
    

    Or without a solution folder:

    dotnet sln $Solution add --in-root $projectPath
    

提交回复
热议问题