gpt4 book ai didi

webdeploy - 无法从 TeamCity 8 错误 MSB4018 : The "IsCleanMSDeployPackageNeeded" task failed unexpectedly 进行网络部署

转载 作者:行者123 更新时间:2023-12-01 03:52:15 28 4
gpt4 key购买 nike

我尝试为自动化项目 Web 部署创建构建配置。从开发机器部署运行良好,但从 TeamCity 运行时出现异常

msbuild.exe d:\projectsnet\testproject\src\testproject.Web\testproject.Web.csproj /P:Configuration=Production /P:DeployIisAppPath="apps.local.company.eu/testproject" /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://production.local.company.eu:8172/msdeploy.axd /P:AllowUntrustedCertificate=True /P:MSDeployPublishMethod=WMSvc /P:CreatePackageOnPublish=True /P:UserName=COMPANY\webdeploy /P:Password=webdeploy

[15:39:37][src\testproject.Web\testproject.Web.csproj.teamcity] PipelinePreDeployCopyAllFilesToOneFolder
[15:39:37][src\testproject.Web\testproject.Web.csproj.teamcity] GenerateMsdeployManifestFiles
[15:39:37][GenerateMsdeployManifestFiles] GetPublishingLocalizedString
[15:39:37][GenerateMsdeployManifestFiles] CallTarget
[15:39:37][CallTarget] CheckAndCleanMSDeployPackageIfNeeded
[15:39:37][CheckAndCleanMSDeployPackageIfNeeded] IsCleanMSDeployPackageNeeded
[15:39:38][IsCleanMSDeployPackageNeeded] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850, 5): error MSB4018: The "IsCleanMSDeployPackageNeeded" task failed unexpectedly. System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Web.Publishing.Tasks.Common.Utility.CheckMSDeploymentVersion() at Microsoft.Web.Publishing.Tasks.Common.Utility.get_IsMSDeployInstalled() at Microsoft.Web.Publishing.Tasks.Common.Utility.CheckMSDeploymentVersion(Task task) at Microsoft.Web.Publishing.Tasks.IsCleanMSDeployPackageNeeded.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)
[15:39:38][src\testproject.Web\testproject.Web.csproj.teamcity] Project src\testproject.Web\testproject.Web.csproj.teamcity failed.
[15:39:38][Step 1/1] Process exited with code 1
[15:39:38][Step 1/1] MSBuild output
[15:39:38][MSBuild output] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Publishing.Tasks.Common.Utility.CheckMSDeploymentVersion(Task task) [C:\TeamCity\buildAgent\work\9eabf555ebf4c4ed\src\testproject.Web\testproject.Web.csproj.teamcity]
[15:39:38][MSBuild output] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Web.Publishing.Tasks.IsCleanMSDeployPackageNeeded.Execute() [C:\TeamCity\buildAgent\work\9eabf555ebf4c4ed\src\testproject.Web\testproject.Web.csproj.teamcity]
[15:39:38][MSBuild output] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\TeamCity\buildAgent\work\9eabf555ebf4c4ed\src\testproject.Web\testproject.Web.csproj.teamcity]
[15:39:38][MSBuild output] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(2850,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) [C:\TeamCity\buildAgent\work\9eabf555ebf4c4ed\src\testproject.Web\testproject.Web.csproj.teamcity]
[15:39:38][MSBuild output] Done Building Project "C:\TeamCity\buildAgent\work\9eabf555ebf4c4ed\src\testproject.Web\testproject.Web.csproj.teamcity" (Build target(s)) -- FAILED.

最佳答案

好的,如果您想使用 TeamCity 的 Web Deploy 部署 Web 应用程序,请确保 http://www.iis.net/downloads/microsoft/web-deploy Web Deploy 安装在 Teamcity 服务器上...

关于webdeploy - 无法从 TeamCity 8 错误 MSB4018 : The "IsCleanMSDeployPackageNeeded" task failed unexpectedly 进行网络部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21352064/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com