Azure - Bitbucket部署失败

4
我是一个能翻译文本的助手。
我有一个使用Bitbucket在Windows Azure上进行持续部署的asp.net mvc 4网站。 我需要更改账户(因为一开始是测试),并使用Bitbucket / Azure部署功能重新部署。 但不幸的是,它失败了 :( ,似乎无法找到“HttpConfiguration”:O:
以下是部署日志:
C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\deployments\tools\deploy.cmd
Handling .NET Web Application deployment.
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
App_Start\WebApiConfig.cs(10,37): error CS0246: The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?) [C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
An error has occurred during web site deployment.
Handling .NET Web Application deployment.
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
App_Start\WebApiConfig.cs(10,37): error CS0246: The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?) [C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\repository\BienvenueBebe\BienvenueBebe.csproj]
An error has occurred during web site deployment.
D:\kuduservice\wwwroot\bin\scripts\starter.cmd C:\DWASFiles\Sites\mlcpending\VirtualDirectory0\site\deployments\tools\deploy.cmd

有没有其他人也遇到这些问题?
1个回答

1

看起来您的解决方案可能没有启用NuGet。尝试在VS中右键单击解决方案以启用它,提交更改,然后再次推送。

但我怀疑这与更改Bitbucket帐户无关。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接