【问题标题】:Build .NET Core targeting both Core and Full .NET on MAC在 MAC 上构建面向 Core 和完整 .NET 的 .NET Core
【发布时间】:2016-11-13 17:34:08
【问题描述】:

我能否通过跳过完整的 .NET 构建和运行来构建面向 .NET Core 和完整 .NET 的 .NET Core 应用程序? 我的意思是我可以在 Windows 上为两者构建,但只能在 MAC 上构建和运行 Core。

【问题讨论】:

    标签: macos asp.net-core .net-core


    【解决方案1】:

    您必须在 dotnet 命令中使用额外的选项,例如 -f for dotnet build 才能在 Mac 上针对 .NET Core 显式编译,

    https://docs.microsoft.com/en-us/dotnet/articles/core/tools/dotnet-build

    不确定这种方法是否适用于所有其他命令。

    【讨论】:

      猜你喜欢
      • 2017-03-11
      • 2021-05-15
      • 2016-10-03
      • 1970-01-01
      • 2016-09-17
      • 2018-12-06
      • 2017-01-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多