//创建类库
 dotnet "new" "classlib" "-lang" "C#" "-n" "addtest" "-o" "addtest"
 //创建webapi
dotnet "new" "webapi" "-lang" "C#" "-n" "Api" "-o" "Api"
//把类库添加到解决方案中
dotnet "sln" "d:\Api.sln" "add" d:\Da.csproj
//从解决方案中移除类库
dotnet sln "d:\Api.sln" remove "d:\Project.Api.csproj"

//给类库中添加包
dotnet "add" "d:\Da.csproj" "package" "System.Data.SqlClient" "-v" "4.8.3"

//类库中引用其他类库
dotnet "add" "d:\Da.csproj" "reference" "d:\Common.csproj"

//运行项目
dotnet run "--project" "Api.csproj"