Msbuild does not copy web.config file when converting

TransformWebConfig folder is empty after msbuild is published. The following is the command 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. 

The Web.config file is present in the directory. I just don’t understand why he doesn’t choose it. Also, after the publication of the addressee, it contains the web.deploy and web.release files, and not the web.config file. Please, help.

+4
source share
1 answer

After several steps, find out that the web.config property is set to Do Not Copy, always change it to copy, and in the second case, the Assembly action was set to none, changing it to content. Hope this helps someone.

+10
source

All Articles