Opening project in Visual Studio fails due to nuget.targets not found error

前端 未结 7 1662
无人及你
无人及你 2020-12-12 20:06

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         


        
7条回答
  •  时光说笑
    2020-12-12 20:37

    Easiest solution when you get this error in order to restore the missing NuGet.targets in Visual Studio Solution Explorer is to:

    1. Right click on the solution file
    2. From the context menu click "Enable Nuget Package Restore..." option

    this will download the missing files in the ".nuget" folder :)

    The above assumes you already have Nuget installed - if not follow the accepted answer above!

    UPDATE: Please note for Visual Studio versions beyond 2013 the option is called "Restore NuGet Packages"

提交回复
热议问题