在2.2.1 sdk发布之后,Azure Kudu无法还原包

时间:2018-12-07 20:26:15

标签: azure asp.net-core kudu

最近两天我无法从git部署到Azure App Service。 Kudu无法运行dotnet restore,并出现以下错误:

Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling ASP.NET Core Web Application deployment.
Restoring packages for D:\home\site\repository\Web.csproj...
D:\Program Files (x86)\dotnet\sdk\2.2.100\NuGet.targets(114,5): error : Could not find file 'D:\home\.nuget\runtime.win7-x86.runtime.native.system.data.sqlclient.sni\4.0.1\runtime.win7-x86.runtime.native.system.data.sqlclient.sni.4.0.1.nupkg'. [D:\home\site\repository\Web.csproj]
Failed exitCode=1, command=dotnet restore "D:\home\site\repository\Web.csproj"
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\79.11121.3655\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"

我试图通过global.json将SDK更改为2.1.500,但除SDK版本外,错误非常相同。

尝试重新启动,请在没有运气的情况下停止/启动服务。我找不到任何部署应用程序的方法。

有什么解决方法吗?

0 个答案:

没有答案