Azure部署失败

时间:2017-09-07 21:03:53

标签: .net azure nuget

我是Azure新手,并试图在那里建立一个网站。我已经把它连接起来接收来自本地git仓库的推送,并且它在我推送时尝试部署,但部署失败并显示以下错误消息。

Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling .NET Web Application deployment.
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Net.Http.Formatting". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\home\site\repository\YoungNeedlesGames.csproj]
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\home\site\repository\YoungNeedlesGames.csproj]
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http.WebHost". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\home\site\repository\YoungNeedlesGames.csproj]
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Newtonsoft.Json". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\home\site\repository\YoungNeedlesGames.csproj]
Global.asax.cs(4,18): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) [D:\home\site\repository\YoungNeedlesGames.csproj]
App_Start\WebApiConfig.cs(1,18): error CS0234: The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) [D:\home\site\repository\YoungNeedlesGames.csproj]
App_Start\WebApiConfig.cs(7,37): error CS0246: The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?) [D:\home\site\repository\YoungNeedlesGames.csproj]
Failed exitCode=1, command="D:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\home\site\repository\YoungNeedlesGames.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="D:\local\Temp\8d4f6334a2b33d7";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\65.60827.2986\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"

在尝试构建之前,它似乎没有恢复nuget包,但这只是猜测。我用Visual Studio创建了一个新的MVC项目,并没有做出任何重大改变。

0 个答案:

没有答案