【问题标题】:Visual Studio for Mac 2017 only allows publish to AzureVisual Studio for Mac 2017 仅允许发布到 Azure
【发布时间】:2017-08-19 05:06:09
【问题描述】:

为什么 VS2017 for Mac 只允许你将 .net core web api 发布到 Azure。没有其他选择。是因为我使用的是社区版吗?如果除了 Azure 没有其他选择,我该如何发布?

【问题讨论】:

  • "没有其他选择。"您正在寻找哪些选项?
  • @LexLi 在其他版本的 Visual Studio 中用于发布到文件、ftp 等。
  • 目前 Visual Studio for Mac 仅支持发布到 Azure for ASP.NET Core 项目。这与您使用的版本无关。如果您需要支持发布到文件或 FTP,最好的选择是在 Windows 上使用 Visual Studio。
  • @Machavity 我编辑了问题以消除我对许可的漫谈。

标签: visual-studio visual-studio-2017 visual-studio-mac


【解决方案1】:

找到这个可以回答您所有 .net 核心问题以及如何在 IIS 中发布的小宝石:Thank you Rick Strahl

但基本上我运行这个命令来发布(win7-x64 是 Windows 2008R2 的 RID):

dotnet publish -c Release -r win7-x64 -f netcoreapp2.0

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-11-28
    • 2018-01-13
    • 2017-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-03
    • 1970-01-01
    相关资源
    最近更新 更多