在Visual Studio 2012中将文件名加倍 [英] Doubling file names in Visual Studio 2012

查看:113
本文介绍了在Visual Studio 2012中将文件名加倍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2012中的解决方案资源管理器"窗口中,文件名加倍(对不起,没有截图-这是链接 http://floomby.ru/s1/uaxC8K ). 同时,在文件资源管理器和项目文件中也可以( http://floomby.ru/s1/WaxCv8 ).

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 all right in File Explorer and in project file (http://floomby.ru/s1/WaxCv8).

这真是一件令人讨厌的事情,无法找到发生这种情况的原因.可以采取什么措施来防止这种行为?

It's really annoying thing and cant find the reason why is this happening. What can be done to prevent such behavior?

推荐答案

除只是更准确地使用Visual Studio 2012合并工具外,仍然无法描述如何防止.但是,这是摆脱解决方案"窗口中重复条目的解决方案.

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. 首先要以某种方式记住重复文件的所有名称(PrtScr或其他)

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

卸载项目(调用项目名称上下文菜单,项目卸载项目")

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

编辑"ProjectName.xxproj" (项目名称的调用上下文菜单,项目"Edit Project.xxproj")

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

Ctrl + F,粘贴重复文件的名称,选择查找全部".在查找结果"窗口中查找绝对相同的项目文件条目,然后删除其中之一( https://docs.google.com/file/d/0B0NKNNSBiGejeV8wZ3g0WEYzcTA/edit?usp=sharing ).

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).

保存更改并重新加载项目

Save changes and Reload Project

这篇关于在Visual Studio 2012中将文件名加倍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆