msbuild發佈後,TransformWebConfig文件夾爲空。以下是teamcity日誌Msbuild在轉換時未複製web.config文件
[09:31:43]: [CollectWebConfigsToTransform] GetPublishingLocalizedString
[09:31:43]: [GetPublishingLocalizedString] Found The following for Config tranformation:
{0}
[09:31:43]: [it\it.vbproj.teamcity] PipelineTransformPhase
[09:31:43]: [PipelineTransformPhase] GetPublishingLocalizedString
[09:31:43]: [GetPublishingLocalizedString] Publish Pipeline Transform Phase
[09:31:43]: [it\it.vbproj.teamcity] AutoParameterizationWebConfigConnectionStringsCore
[09:31:43]: [AutoParameterizationWebConfigConnectionStringsCore] Skipping target
"AutoParameterizationWebConfigConnectionStringsCore" because it has no inputs.
[09:31:43]: [it\it.vbproj.teamcity] CopyAllFilesToSingleFolderForPackage (1s)
[09:31:43]: [CopyAllFilesToSingleFolderForPackage] GetPublishingLocalizedString
[09:31:43]: [GetPublishingLocalizedString] Copying all files to temporary location below for package/publish:obj\Deploy-Dev\Package\PackageTmp.
Web.config文件存在於目錄中。只是不明白爲什麼它沒有選擇它。另外發布後,目標位置包含web.deploy和web.release文件,而不是web.config文件。請幫忙。
我有一個[類似問題](http://stackoverflow.com/questions/6829692/how-do-i-run-app-config-transformation-task-first-before-the-postbuildevents)與應用程序。配置。我認爲這與{編譯,發佈,轉換}的順序有關 – oleksii
我正在使用以下命令行參數 /M /P:Configuration=%env.Configuration%/ P:DeployOnBuild = True /P:DeployTarget = MSDeployPublish /P:MsDeployServiceUrl=%env.TargetServer%/MsDeployAgentService/P:MSDeployPublishMethod = RemoteAgent/P:CreatePackageOnPublish = True /P:Username=%env.username%/P:Password=%env.password%,他們工作得很好對於其他項目而言,它只是一個項目。 – sam