从 GitHub 错误部署到 Azure
Deploy to Azure from GitHub error
大家。
我正在尝试将我的 Web 应用程序发布到 Azure,使用 GitHub project (source) 作为 Azure 门户中的部署源。
项目获取成功,但是构建开始时失败"Running deployment command...":
Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling ASP.NET Core Web Application deployment.
MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild.0\bin'.
Restoring packages for D:\home\site\repository\src\MessyLabAdmin\project.json...
Package Ix-Async 1.2.5 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Ix-Async 1.2.5 supports:
- net40 (.NETFramework,Version=v4.0)
- net45 (.NETFramework,Version=v4.5)
- portable-net45+win8+wp8 (.NETPortable,Version=v0.0,Profile=Profile78)
Package Remotion.Linq 2.0.1 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Remotion.Linq 2.0.1 supports:
- net35 (.NETFramework,Version=v3.5)
- net40 (.NETFramework,Version=v4.0)
- net45 (.NETFramework,Version=v4.5)
- portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)
Package Microsoft.CodeAnalysis.CSharp 1.1.0-rc1-20151109-01 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Microsoft.CodeAnalysis.CSharp 1.1.0-rc1-20151109-01 supports:
- net45 (.NETFramework,Version=v4.5)
- portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7)
Package Microsoft.CodeAnalysis.Common 1.1.0-rc1-20151109-01 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Microsoft.CodeAnalysis.Common 1.1.0-rc1-20151109-01 supports:
- net45 (.NETFramework,Version=v4.5)
- portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7)
One or more packages are incompatible with DNXCore,Version=v5.0.
Committing restore...
Writing lock file to disk. Path:
D:\home\site\repository\src\MessyLabAdmin\project.lock.json
D:\home\site\repository\src\MessyLabAdmin\MessyLabAdmin.xproj
Restore failed in 13568ms.
项目在本地环境中运行完全正常,使用 Visual Studio 2015.
我在您的项目中看到了对 RC1 的引用。 RC2 刚刚在 5 月中旬发布,所以我建议继续使用 RC2,因为您在 RC2 发布后立即发布了这个问题。
至于部署到 Azure,以下是 ASP .NET 开发博客当前关于部署到 Azure 的内容:
Can I use RC2 with Azure Web Applications?
We are rolling the RC2 out to the Azure App Services and expect it to become available later this week. Keep an eye on the Azure Blog for
an announcement when it is available.
来源: https://blogs.msdn.microsoft.com/webdev/2016/05/16/announcing-asp-net-core-rc2/
如果您已经在 RC1 中做了很多工作,这里有一个从 RC1 迁移到 RC2 的指南:
希望对您有所帮助!
大家。
我正在尝试将我的 Web 应用程序发布到 Azure,使用 GitHub project (source) 作为 Azure 门户中的部署源。
项目获取成功,但是构建开始时失败"Running deployment command...":
Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling ASP.NET Core Web Application deployment.
MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild.0\bin'.
Restoring packages for D:\home\site\repository\src\MessyLabAdmin\project.json...
Package Ix-Async 1.2.5 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Ix-Async 1.2.5 supports:
- net40 (.NETFramework,Version=v4.0)
- net45 (.NETFramework,Version=v4.5)
- portable-net45+win8+wp8 (.NETPortable,Version=v0.0,Profile=Profile78)
Package Remotion.Linq 2.0.1 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Remotion.Linq 2.0.1 supports:
- net35 (.NETFramework,Version=v3.5)
- net40 (.NETFramework,Version=v4.0)
- net45 (.NETFramework,Version=v4.5)
- portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)
Package Microsoft.CodeAnalysis.CSharp 1.1.0-rc1-20151109-01 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Microsoft.CodeAnalysis.CSharp 1.1.0-rc1-20151109-01 supports:
- net45 (.NETFramework,Version=v4.5)
- portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7)
Package Microsoft.CodeAnalysis.Common 1.1.0-rc1-20151109-01 is not compatible with dnxcore50 (DNXCore,Version=v5.0). Package Microsoft.CodeAnalysis.Common 1.1.0-rc1-20151109-01 supports:
- net45 (.NETFramework,Version=v4.5)
- portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7)
One or more packages are incompatible with DNXCore,Version=v5.0.
Committing restore...
Writing lock file to disk. Path:
D:\home\site\repository\src\MessyLabAdmin\project.lock.json
D:\home\site\repository\src\MessyLabAdmin\MessyLabAdmin.xproj
Restore failed in 13568ms.
项目在本地环境中运行完全正常,使用 Visual Studio 2015.
我在您的项目中看到了对 RC1 的引用。 RC2 刚刚在 5 月中旬发布,所以我建议继续使用 RC2,因为您在 RC2 发布后立即发布了这个问题。
至于部署到 Azure,以下是 ASP .NET 开发博客当前关于部署到 Azure 的内容:
Can I use RC2 with Azure Web Applications?
We are rolling the RC2 out to the Azure App Services and expect it to become available later this week. Keep an eye on the Azure Blog for an announcement when it is available.
来源: https://blogs.msdn.microsoft.com/webdev/2016/05/16/announcing-asp-net-core-rc2/
如果您已经在 RC1 中做了很多工作,这里有一个从 RC1 迁移到 RC2 的指南:
希望对您有所帮助!