首页 文章

如何将asp.net core 2.1预览应用程序部署到azure?我如何在azure中安装新的sdk

提问于
浏览
1

我升级到.NET Core 2.1 Preview 1 SDK并按照以下链接中的说明安装了asp.net core 2.1预览站点扩展

https://blogs.msdn.microsoft.com/webdev/2018/02/27/asp-net-core-2-1-0-preview1-using-asp-net-core-previews-on-azure-app-service/

预期的行为
期待为azure web app安装新发布的sdk

实际行为
在Web应用程序控制台屏幕上运行dotnet --info会得到以下结果:

D:\home\site\wwwroot

dotnet --info
D:\home\site\wwwroot
.NET Command Line Tools (2.1.4)

Product Information:
Version: 2.1.4
Commit SHA-1 hash: 5e8add2

Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x86
Base Path: D:\Program Files (x86)\dotnet\sdk\2.1.4\

Microsoft .NET Core Shared Framework Host
Version : 2.0.5
Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54

谁知道如何将我的asp.net核心2.1预览应用程序部署到azure?

1 回答

  • 3

    在运行 dotnet --info 之前,您应该检查扩展名是否确实已安装:
    enter image description here
    您可以再次查看链接指令或按照我的方法操作:

    • 转到scm sitehttps://<yourWebSiteName>.scm.azurewebsites.net/SiteExtensions#gallery

    • 安装dotnet核心运行时siteextensions
      enter image description here

    • 验证它已安装并重新启动站点
      enter image description here

相关问题