尝试将ASP.NET Web应用程序从BitBucket部署到azure并获取错误

时间:2016-09-06 21:22:25

标签: asp.net azure

我正在尝试将BitBucket中的asp.net Web应用程序部署到Azure Web应用程序并收到以下错误:

Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling ASP.NET Core Web Application deployment with MSBuild.
MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild\14.0\bin'.
Restoring packages for D:\home\site\repository\src\Sertech\project.json...
Committing restore...
Lock file has not changed. Skipping lock file write. Path: D:\home\site\repository\src\Sertech\project.lock.json
D:\home\site\repository\src\Sertech\Sertech.xproj
Restore completed in 1753ms.

NuGet Config files used:
    C:\DWASFiles\Sites\#1SertechWebApp\AppData\NuGet\NuGet.Config

Feeds used:
    https://api.nuget.org/v3/index.json
  Cannot find DNX runtime dnx-clr-win-x86.1.0.0-rc1-update1 in the folder: .dnx\runtimes
D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(248,5): error MSB4044: The "GetBuildOptions" task was not given a value for the required parameter "RuntimeToolingDirectory". [D:\home\site\repository\src\Sertech\Sertech.xproj]
Failed exitCode=1, command="D:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\home\site\repository\Sertech.sln" /nologo /verbosity:m /p:deployOnBuild=True;AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false;publishUrl="D:\local\Temp\8d3d203fca67f23"
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\57.50831.2397\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"

Visual Studio中的“发布Web”选项工作得很好,问题只发生在BitBucket部署中。

到目前为止我没有按特定顺序尝试过:

  • 使用我在搜索问题时找到的自定义部署脚本。

  • 使用从我的员工的Kudu页面下载的自定义部署脚本 Azure网络应用。

  • 更改VS中的SDK版本。

  • 在本地安装dnx-clr-win-x86 nuget软件包。

  • 在网络应用资源上安装dnx-clr-win-x86 nuget包 使用Azure控制台(无法找到包)。

如果有人能指出我正确的方向进行故障排除或有解决方案,我将非常感谢。

1 个答案:

答案 0 :(得分:0)

DNX? RC1?发布候选版本不是相当RELEASED软件。正如<唐纳德总统并不是因为他是候选人(至少在撰写本文时没有)。

Azure应用服务不再支持

ASP.NET 5.0测试版核心1.0 RC1 核心1.0 RC2

不可否认,这是在博客文章中公布的,因此可见度可能会受到影响 - https://blogs.msdn.microsoft.com/waws/2016/06/14/supporting-asp-net-5-core-rc1-on-azure-app-service/

  

Azure应用服务是否支持ASP.NET 5,Core RC1,RC2?

     

不,Azure App Service不再支持ASP.NET 5,Core RC1或RC2。唯一受支持的ASP.NET Core堆栈是Azure App Service上的RTM。在https://blogs.msdn.microsoft.com/appserviceteam/2016/06/27/azure-app-service-and-asp-net-core/

检查新发布的RTM版本

难怪你看到事情在破碎。将项目升级到ASP.NET Core 1.0 RTM 并重新部署。

官方移民指南:
https://docs.asp.net/en/latest/migration/rc1-to-rtm.html