导航栏中显示的重复项目 [英] Duplicate projects showing in the navigation bar

查看:242
本文介绍了导航栏中显示的重复项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个解决方案,对我和其他3个开发人员工作了3年。  今天我尝试使用HttpClient和添加System.Net.Http命名空间所需的页面。

I have a Solution that has been working fine for me and 3 other developers for 3 years.  Today I was trying to use the HttpClient and the page needed to add the System.Net.Http namespace.

我做了ctrl +。并添加了VS颜色编码HttpClient类的命名空间。

I did the ctrl + . and added the namespace the VS color coded the HttpClient class just fine.

然后在构建和测试时收到了关于缺少命名空间的错误。

Then upon building and testing I received and error about missing a namespace.

我回去检查了确实存在,但是当我在HttpClient类上面时,它显示了我从未见过的东西,它向我显示项目名称两次,一个说可用,另一个说不可用

I went back and checked and it was indeed there but when I moused over the HttpClient class it showed something I have never seen before it showed me the project name twice and one said available and the other said not available

截图at imgur.com/Gz4Fmgw

screenshot at imgur.com/Gz4Fmgw

现在在导航栏中,我看到以下内容

Now in the navigation bar I see the following

截图imgur.com/P16y0VM

screenshot at imgur.com/P16y0VM

首先我尝试切换仍然存在可用且不可用的错误。

So first I try to switch and still the error about available and not available persists.

现在解决方案中只有1个项目

Now in the solution there is only 1 project

imgur.com/U3eOaLj的屏幕截图

screen shot at imgur.com/U3eOaLj

我还尝试从我的机​​器中删除对项目的所有引用,然后从另一个没有的团队成员那里带来完整解决方案的副本有这个问题和重复遗骸。

I also tried removing all references to the project from my machine and then bringing over a copy of the full solution from another team member who does not have this issue and the duplicate remains.

如何让Visual Studio删除此"幻像"?第二个项目,所以我可以再次工作?

How do I get Visual Studio to remove this "phantom" second project so I can go about working again?

链接不包括在内,因为它不会让我添加链接

Links not included because it wont let me add links

编辑:VS2015专业 

Edit : VS2015 Professional 

推荐答案

我会尽我所能让VS向我展示幽灵参考的位置。你能点击不可用的mbsRewrite(在intellisense中)吗?如果你按F12代替HttpClient怎么办,这有帮助吗?类视图和/或对象浏览器
有帮助吗?在对象浏览器中搜索HttpClient;这需要一分钟才能完成,但它可能会有所帮助。您是否看过该项目的参考文献?
I would do everything I can to get VS to show me where the phantom reference is. Can you click on the mbsRewrite (in the intellisense) that is not available? What if you press F12 for HttpClient, does that help? Does Class View and/or the Object Browser help? Search for HttpClient in the Object Browser; that will take a minute to complete but it might help. Did you look at the references for the project?


这篇关于导航栏中显示的重复项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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