由于找不到nuget.targets错误,因此无法在Visual Studio中打开项目 [英] Opening project in Visual Studio fails due to nuget.targets not found error

查看:800
本文介绍了由于找不到nuget.targets错误,因此无法在Visual Studio中打开项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此我从 http://www.twitterizer.net/downloads/ 下载了Twitterizer. >

我尝试在Visual Studio中打开它并得到所有这些nuget错误:

The imported project "C:\Twitterizer\.nuget\nuget.targets" was not found. 
Confirm that the path in the <Import> declaration is correct, and that the file 
exists on disk.

发生了什么事.我该如何处理?

解决方案

  1. 安装Nuget.
  2. 右键单击解决方案,然后选择启用NuGet 程序包还原".在Visual Studio 2013及更高版本中,请选择还原NuGet程序包".
  3. 在警告上单击确定".
  4. 关闭并重新打开解决方案.

现在应该是矮胖的.

So I downloaded Twitterizer from http://www.twitterizer.net/downloads/

I try to open it in Visual Studio and get all these nuget errors:

The imported project "C:\Twitterizer\.nuget\nuget.targets" was not found. 
Confirm that the path in the <Import> declaration is correct, and that the file 
exists on disk.

What is going on. How do I deal with this?

解决方案

  1. Install Nuget.
  2. Right click on the solution and select "Enable NuGet Package Restore". In Visual Studio 2013 and later, select "Restore NuGet Packages" instead.
  3. Click Ok on the warning.
  4. Close and re-open the solution.

Should now be hunky-dory.

这篇关于由于找不到nuget.targets错误,因此无法在Visual Studio中打开项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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