Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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] Copying 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.

like image 425
sam Avatar asked Jul 27 '11 08:07

sam


1 Answers

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.

like image 130
sam Avatar answered Oct 13 '22 19:10

sam