Doubling file names in Visual Studio 2012

别等时光非礼了梦想. 提交于 2019-12-01 13:41:11

Still can't describe how to prevent, except it's just use the Visual Studio 2012 merge tool more accuratly. But here is the solution to get rid of duplicate entries in Solution window.

  1. First remember somehow all name of duplicated files (PrtScr or smth else)

  2. Unload the project (call context menu on project name, item "Unload Project")

  3. Edit "ProjectName.xxproj" (call context menu on project name, item "Edit Project.xxproj")

  4. Ctrl+F, paste the name of duplicated file, choose Find All. Look in Find Results window for absolutely identical entries of project files and remove one of them (https://docs.google.com/file/d/0B0NKNNSBiGejeV8wZ3g0WEYzcTA/edit?usp=sharing).

  5. Save changes and Reload Project

Another way is that

  1. Exclude duplicate files from project
  2. Click on "Show all files" button on top of solution explorer
  3. Click again on "Show all files" button on top of solution explorer (this time you should see only one excluded file)
  4. Include file again

You can do this on folders too

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