开发者

Msbuild is not copying web.config file while transformation

TransformWebConfig folder is empty after msbuild publish. Following is the teamcity log

[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] C开发者_StackOverflow中文版opying all files to temporary location below for package/publish:obj\Deploy-Dev\Package\PackageTmp.

Web.config file is present in the directory. Just don't understand why it is not picking it. Also After publishing the destination is containing web.deploy and web.release files instead of web.config file. Please help.


After a few work around, figure out that web.config property was set to Do not Copy, change it to copy always and secondly Build action was set to none, change it to content. Hope it will help someone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜