Web transformation files get copied to root + bin

回眸只為那壹抹淺笑 提交于 2019-12-23 15:53:25

问题


I recently upgrade my project to vs 2010.
One of the main reasons for doing so is the addition of web transformation files.

With my existing project upgraded : i clicked Add Config Transforms, i updated a simple value from my config for testing purposes and i published my project to the file system.

What i expected was to find 1 transformed web.config in my root folder.
What i found was 1 transformed web.config + all my config transformation files as well:
Web.Debug.config , web.Release.config and web.Test.config
Also strange : all these files were outputted to my bin folder as well.

Does anyone know what i'm doing wrong? It seems to work fine if i create an entirely new web project but i want to fix my existing upgraded project.


回答1:


Kind of a dumb cause but the property Copy to output directory affects all of the versions for that web.config.
Changing it to Do Not copy resolves my issue.



来源:https://stackoverflow.com/questions/5065218/web-transformation-files-get-copied-to-root-bin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!