警告:找不到引用的组件“NuGet.Core" [英] Warning : The referenced component 'NuGet.Core' could not be found

查看:32
本文介绍了警告:找不到引用的组件“NuGet.Core"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Visual Studio 2010 中开发一个开发的桌面应用程序.直到昨天一切都很好,但从今天开始,只要我在 Visual Studio 中打开项目,它就会给我警告,引用的组件‘NuGet.Core’可以找不到".我在解决方案资源管理器中搜索,发现在 Project-> References 中,NuGet.Core 带有感叹号.我不知道有什么东西被删除或损坏了.请帮忙!!我无法找到这背后的原因.搜索了解决方案但没有成功.图片:这是我在解决方案资源管理器中搜索时得到的

I am working on a developed desktop application in Visual Studio 2010. Till yesterday everything was fine but from today as soon as I open the project in Visual Studio it is giving me warning,"The referenced component 'NuGet.Core' could not be found". I searched in Solution Explorer and found that in the Project-> References, NuGet.Core with an exclamation mark. Is something got deleted or corrupted I don't know. Please Help!! I am not able to find the reason behind this. Searched for the solution but no success.Image:This is what I got while searching in Solution Explorer

推荐答案

感叹号表示项目丢失了引用的位置,但它知道它应该在那里.如果您手动删除引用(右键单击组件然后选择删除)然后重新添加(项目->添加引用->然后找到文件位置[您应该不需要使用Nuget重新添加它])给您项目它应该让你的项目再次工作.

The exclamation mark means that the project has lost the location of the reference, but it knows it should be there. If you manually delete the reference (right click on the component and then select delete) and then re add it (project -> add reference -> then find the file location [you should not need to re add it using Nuget]) to you project it should get your project working again.

关于为什么会发生这种情况,可能是某处发生了变化,导致 VS 丢失了引用.这可能是引用的位置、源代码控制或其他内容.经常找不到原因.

With regard to why this is happening, something may have changed somewhere that caused VS to lose the reference. This could be the location of the reference, or source control, or something else. Often I am unable to find the reason for this.

这篇关于警告:找不到引用的组件“NuGet.Core"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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