我有一个Azure应用服务,有两个部署插槽,prod和dev。我从VSTS配置到dev插槽配置了持续部署,并且它已经运行了好几个月但是在运行部署命令步骤时它突然失败了。这是该步骤的日志。
Installed:
81 package(s) to packages.config projects
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "ManagedMinimumRules.ruleset". [D:\home\site\repository\VendorPortalSite\VendorPortalSite.csproj]
Services\Data\UserRepository.cs(303,30): warning CS0168: The variable 'e' is declared but never used [D:\home\site\repository\VendorPortalSite\VendorPortalSite.csproj]
VendorPortalSite -> D:\home\site\repository\VendorPortalSite\bin\VendorPortalSite.dll
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "ManagedMinimumRules.ruleset". [D:\home\site\repository\VendorPortalSite\VendorPortalSite.csproj]
VendorPortalSite -> D:\home\site\repository\VendorPortalSite\bin\VendorPortalSite.dll
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "ManagedMinimumRules.ruleset". [D:\home\site\repository\VendorPortal\VendorPortal.csproj]
VendorPortal -> D:\home\site\repository\VendorPortal\bin\Release\VendorPortal.exe
D:\home\site\repository\packages\Microsoft.Web.WebJobs.Publish.1.0.12\tools\webjobs.wap.targets(151,5): warning : WebJob schedule for NotifyTeacher will not be created. WebJob schedules can only be created when the publish destination is an Azure Website [D:\home\site\repository\VendorPortalSite\VendorPortalSite.csproj]
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [D:\home\site\repository\UploadTempData\UploadTempData.csproj]
D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "ManagedMinimumRules.ruleset". [D:\home\site\repository\UploadTempData\UploadTempData.csproj]
UploadTempData -> D:\home\site\repository\UploadTempData\bin\Release\UploadTempData.exe
D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(2673,5): error MSB4062: The "GetProjectProperties" task could not be loaded from the assembly D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.Tasks.dll. Could not load file or assembly 'file:///D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [D:\home\site\repository\VendorPortalSite\VendorPortalSite.csproj]
Failed exitCode=1, command="D:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\home\site\repository\VendorPortalSite\VendorPortalSite.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="D:\local\Temp\8d4069364ae5648";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\59.51102.2512\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"
警告一直存在,而且从未引起过问题。我试图删除并重新创建插槽,但这没有帮助。