Best way to add NuGet packages as project references in VS2012?

前端 未结 4 1160
夕颜
夕颜 2020-12-02 10:18

Ok. Really quick question, I\'m probably just being thick.

If you right-click on a projects \'references\' folder then \'Manage NuGet Packages\' you can then instal

4条回答
  •  庸人自扰
    2020-12-02 10:58

    I had the same issue. The solution posted by kristianp has worked as expected, it can be a bit cumbersome however, when dealing with lots of packages. The solution, that worked for me was just to edit the myProjectName.csproj file in the notepad, and just to copy-paste references from another project like so:

    ...
    
    
        
          ..\packages\Microsoft.AspNet.SignalR.Core.2.1.2\lib\net45\Microsoft.AspNet.SignalR.Core.dll
        
        
          ..\packages\Microsoft.AspNet.SignalR.SystemWeb.2.1.2\lib\net45\Microsoft.AspNet.SignalR.SystemWeb.dll
        
    
        ...
    

    Hope this helps someone. It saved me a lot of clicking :)

提交回复
热议问题