【问题标题】:Building/Running/Tasks multiple dotnet project in Visual Studio code?在 Visual Studio 代码中构建/运行/任务多个 dotnet 项目?
【发布时间】:2016-07-06 20:12:03
【问题描述】:

我的项目结构如下?这可能吗?

-global.json
-src
    -Web
        -project.json
        -program.cs
    -Web2
        -project.json
        -program.cs
-test
    -Web.Test
        -project.json
        -program.cs
    -Web2.Test
        -project.json
        -program.cs

【问题讨论】:

    标签: visual-studio-code .net-core asp.net-core-1.0


    【解决方案1】:

    您可以使用dotnet new sln 将解决方案文件添加到您的根文件夹。然后,您可以使用 dotnet sln add 添加项目引用:https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-sln

    dotnet build 将构建所有引用的项目,dotnet test 将运行找到的所有单元测试。

    【讨论】:

      猜你喜欢
      • 2018-01-21
      • 2011-06-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-13
      • 2017-05-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多