本文介绍了部署ASP.NET vNext Beta 2中在Azure上与库杜的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据,我可以用捻部署vNext应用到Azure上。我已经成功地与vNext测试试了一下1.但是,它不与vNext Beta 2的工作。

According to this blog post, I can deploy vNext apps to Azure using Kudu. I've successfully tried it with vNext beta 1. However, it does not work with vNext beta 2.

为什么我不能用vNext Beta 2的部署?我想用vNext的整体思路就是一切(包括CLR)下载为的NuGet包。

Why can't I deploy with vNext beta 2? I thought the whole idea with vNext is that everything (including the CLR) is downloaded as NuGet packages.

推荐答案

我只碰到了今天这个问题和我下面的工作:

I just ran into this problem today and the following worked for me:

在您的Azure网站设置以下环境变量(应用程序设置):

Set the following environment variables (app settings) in your Azure Web Site:

SCM_KRE_Version 1.0.0-β2

SCM_KRE_Version 1.0.0-beta2

SCM_KRE_CLR CoreCLR

SCM_KRE_CLR CoreCLR

澄清 SCM_KRE_CLR默认为满的CLR,如果你想运行使用新CoreCLR你的网站只设置SCM_KRE_CLR为CoreCLR,假设您的网站定位ASPNETCORE50(这已经被改名为DNXCORE50素β3后)

Clarification SCM_KRE_CLR defaults to the "full" clr, only set SCM_KRE_CLR to CoreCLR if you want to run your website using the new CoreCLR, assuming your site targets ASPNETCORE50 (which has since been renamed to DNXCORE50 after beta3)

这篇关于部署ASP.NET vNext Beta 2中在Azure上与库杜的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 20:49