所以我从http://www.twitterizer.net/downloads/下载了推特
我尝试在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.这是怎么回事。我该如何处理这件事?
发布于 2013-03-25 21:43:47
另一种方法是使用文本编辑器编辑.csproj文件,然后删除或注释掉该段。
发布于 2015-08-29 05:15:55
当您尝试直接打开.csproj,而不是通过解决方案文件,并且.csproj像这样导入Nuget目标时,通常会发生此错误:
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" />为了解决这个问题,您可以打开.sln而不是.csproj directly...or删除上面的import行。
请注意,上述错误只会在您使用solution wise包还原时发生,甚至不再推荐使用。
发布于 2016-06-24 00:48:43
刚刚遇到了同样的问题,但在我的例子中,问题是文件夹名称中的一个空格:
Nuget告诉我它找不到"C:\git\My Path“,但我能够导航到"C:\git\My%20Path”。删除文件夹名称中的空格“修复”了这个问题。
https://stackoverflow.com/questions/9133854
复制相似问题