Doubling file names in Visual Studio 2012

后端 未结 2 1318
迷失自我
迷失自我 2021-01-16 11:10

In Visual Studio 2012 in Solution Explorer window have doubled file names (sorry for no screenshots - here is the link http://floomby.ru/s1/uaxC8K). In the same time it\'s

相关标签:
2条回答
  • 2021-01-16 11:14

    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

    0 讨论(0)
  • 2021-01-16 11:22

    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

    0 讨论(0)
提交回复
热议问题