VS2010无法添加web.config转换
曾几何时,我有一个'DEV'配置和'Web.DEV.config'转换我的项目的文件。然后我删除了那个特定的配置......
现在我再次想要它。问题是,当我添加配置,然后尝试将配置转换添加到项目中时,我收到以下 Visual Studio 投诉:
A file or folder with the name 'Web.DEV.config' already exists.
Please give a unique name to the item you are adding, or delete
the existing item first.
我检查了项目的物理目录,但没有这样的文件。我在整个解决方案中搜索了“Web.DEV.config”,有 0 个结果。到底为什么 Visual Studio 如此努力地想要降低我今天的工作效率?
Once upon a time, I had a 'DEV' configuration and a 'Web.DEV.config' transformation file for my project. I then removed that particular configuration...
...Now I want it again. Problem is, when I add the configuration, then try to add the config transformation to the project, I get the following Visual Studio complaint:
A file or folder with the name 'Web.DEV.config' already exists.
Please give a unique name to the item you are adding, or delete
the existing item first.
I've checked the physical directory of the project, and there is no such file. I searched my entire solution for 'Web.DEV.config', and there are 0 results. Why the heck is Visual Studio trying so hard to kill my productivity today?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试从 sln 文件所在的文件夹中删除 .suo 文件(它是一个隐藏文件,您需要配置文件资源管理器以显示隐藏文件)。不确定它是否有效,但值得一试(请注意,删除此文件时您将丢失本地用户设置)
Try removing your .suo file from the same folder as the sln file (it's a hidden file, you need to configure your file explorer to show hidden files). Not sure it will work but it's worth a try (beware you will lose your local user settings when you delete this file)
实际的配置仍然存在......
即使我删除了配置文件,实际的配置仍然存在。当我删除配置(通过配置管理器)后,Visual Studio 再次高兴起来!
The actual configuration was still lingering around....
Even though I deleted the config file, the actual configuration was still there. Once I deleted the configuration (through the configuration manager), Visual Studio was happy once again!