Visual Studio 2008重复项目文件夹问题
每次我在 Visual Studio 2008 中创建新网站时,都会在项目文件夹中创建两个文件夹;即网站1 & website1 (2)(例如使用默认值)。文件夹“Website1”将包含 web.config、default.aspx 和代码隐藏页面以及 app_data 文件夹。 “Website1 (2)”将包含 *.suo 和 *.sln 文件。关于为什么会发生这种情况以及更重要的是如何纠正有什么想法吗?
我不确定这是什么时候开始的,但我有其他网站项目不是这样的。
我已经在 Stackoverflow 和 Google 上搜索了解决方案,但没有成功找到解决方案。任何帮助将不胜感激。
Every time I create a new website in Visual Studio 2008, two folders are created in the projects folder; ie website1 & website1 (2)(using defaults for example). Folder "Website1" will have the web.config, the default.aspx and code behind page and the app_data folder. "Website1 (2)" will have the *.suo and *.sln files in it. Any ideas on why this is happening and more importantly how to correct?
Im not sure when this started but I have other website projects that are not this way.
I have searched for solutions here on Stackoverflow and with Google but have been unsuccessful in finding a solution. Any assistance will be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我一直无法找到原因,但将设置恢复为默认值已经解决了问题。
菜单:工具>导入和导出设置 - 并选择重置设置。
I was never able to find the cause but restoring the setting to the defaults has corrected the issue.
Menu: Tools > Import and Export Settings -- and choose reset settings.
将我的设置重置为默认值对我来说不起作用。
有效的方法是保存到“项目”文件夹中:
C:\Users\baxter\Documents\Visual Studio 2010\Projects\WebSite1
我将其保存到 WebSites 文件夹中:
C:\Users\baxter\Documents\Visual Studio 2010\WebSites\WebSite1
我现在只得到 1 个创建的文件夹 WebSite1,而不是 WebSite1 和 WebSite1(2)
Resetting my settings to the defaults did not work for me.
What did work was instead of saving to the Projects folder:
C:\Users\baxter\Documents\Visual Studio 2010\Projects\WebSite1
I saved it to the WebSites folder:
C:\Users\baxter\Documents\Visual Studio 2010\WebSites\WebSite1
I now only get 1 folder created WebSite1 not WebSite1 and WebSite1(2)