Generate Solution File From List of CSProj

前端 未结 7 1486
长情又很酷
长情又很酷 2020-12-15 09:25

I\'ve got alot of projects and I don\'t have a master solution with everything in it. The reason I want one is for refactoring.

So I was wondering if anybody knew a

7条回答
  •  囚心锁ツ
    2020-12-15 10:01

    In 2018, you can use dotnet sln command to add project to an existing solution and dotnet new sln to create a new one.

    To add all projects from current folder use these commands in PowerShell

    dotnet new sln
    Get-ChildItem -Recurse *.csproj | ForEach { dotnet sln add $_.FullName }
    

提交回复
热议问题