azure kudu无法在2.2.1 sdk发行版之后还原包

vecaoik1  于 2021-06-24  发布在  Kudu
关注(0)|答案(0)|浏览(188)

我在过去2天无法从git部署到azure应用程序服务。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版本外,错误非常相同。
尝试重新启动,停止/启动服务时运气不佳。我找不到任何方法来部署应用程序。
你知道怎么解决吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题