Azure Appservice - Bitbucket Deploy错误

时间:2018-03-30 09:38:41

标签: azure bitbucket azure-web-sites

我试图通过Bitbucket将我在本地完全运行的网站部署到Azure App Service,但它失败了。

我是Azure新手,可以开导我吗? 这是日志

Command: "D:\home\site\deployments\tools\deploy.cmd"
Handling .NET Web Application deployment.
MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild\14.0\bin\amd64'.
All packages listed in packages.config are already installed.
SystemFrameWork -> D:\home\site\repository\SystemFrameWork\bin\Release\SystemFrameWork.dll
DataAccess -> D:\home\site\repository\DataAccess\bin\Release\DataAccess.dll
SEI-Utils -> D:\home\site\repository\SEI-Utils\bin\Release\SEIUtils.dll
Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "4.5.0.0" [] to Version "6.0.0.0" [D:\home\site\repository\WebUI\bin\Newtonsoft.Json.dll] to solve conflict and get rid of warning.
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /></dependentAssembly></assemblyBinding> [D:\home\site\repository\WebUI\SMC.WEB-UI.csproj]
SMC.WEB-UI -> D:\home\site\repository\WebUI\bin\SEI.dll
Transformed Web.config using       
D:\home\site\repository\WebUI\Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config.
Copying all files to temporary location below for package/publish:
D:\local\Temp\8d59617f714bd52.
D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(3010,5): error : Copying file Content\buz\images\.DS_Store to D:\local\Temp\8d59617f714bd52\Content\buz\images\.DS_Store failed. Could not find file 'Content\buz\images\.DS_Store'. [D:\home\site\repository\WebUI\SMC.WEB-UI.csproj]
 Failed exitCode=1, command="D:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\home\site\repository\WebUI\SMC.WEB-UI.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="D:\local\Temp\8d59617f714bd52";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false /p:SolutionDir="D:\home\site\repository\.\\"
An error has occurred during web site deployment.
\r\nD:\Program Files (x86)\SiteExtensions\Kudu\71.10313.3301 \bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"

1 个答案:

答案 0 :(得分:0)

关键错误是:

error : Copying file Content\buz\images\.DS_Store to D:\local\Temp\8d59617f714bd52\Content\buz\images\.DS_Store failed. Could not find file 'Content\buz\images\.DS_Store'.

我的猜测是您忘了将此文件添加到您的仓库中。如果您使用repo的干净克隆进行本地部署,则可能会看到相同的错误。有关详细信息,请参阅here