VS2010无法添加web.config转换

发布于 2024-12-13 06:24:39 字数 474 浏览 5 评论 0原文

曾几何时,我有一个'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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

以歌曲疗慰 2024-12-20 06:24:39

尝试从 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)

霞映澄塘 2024-12-20 06:24:39

实际的配置仍然存在......

即使我删除了配置文件,实际的配置仍然存在。当我删除配置(通过配置管理器)后,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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文