网络转型文件被拷贝到根+斌 [英] Web transformation files get copied to root + bin
问题描述
我最近我的项目升级到2010年VS结果
其中一个主要的原因,这样做是增加了网络转换文件。
搜索结果
用我现有的项目升级:我点击添加配置变换,我从我的配置更新一个简单的值用于测试目的,我发表了我的项目到文件系统。
结果
结果
我的预期是要找到自己的根文件夹1转换的web.config。结果
我发现,1转化的web.config +我所有的配置转变文件以及:结果
Web.Debug.config,web.Release.config和web.Test.config结果
也奇怪:所有这些文件都输出到我的bin文件夹和搜索结果。
有谁知道我做错了吗?看来,如果我创建了一个全新的web项目工作正常,但我想解决我的现有升级的项目。
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.
推荐答案
一个愚蠢的原因种类但物业复制到输出目录会影响所有版本为web.config文件中。结果更改它不要复制解决我的问题。
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.
这篇关于网络转型文件被拷贝到根+斌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!