Install C# library without the Package Manager Console

。_饼干妹妹 提交于 2019-12-24 16:22:21

问题


Is there any way to install C# libraries other than using the Package Manager Console? I want to use the Facebook C# SDK but I'm using Visual Studio Express for WP and I don't have the PMC. I found this guide on nuget, but I'm going to have to do it some other way.

Any ideas?


回答1:


It is mentioned in README.md file on how to download Facebook C# SDK .dll files without using NuGet Package Manager Console at https://github.com/facebook-csharp-sdk/facebook-csharp-sdk

Binaries for Facebook C# SDK are only distributed via nuget. For those using older versions of Visual Studio that does not support NuGet Package Manager, please download the command line version of NuGet.exe (http://nuget.codeplex.com/releases/view/58939) and run the following command.

nuget install Facebook

If you would like to get an older version of the the binaries please use the following command.

nuget install Facebook -v 5.4.1

Update: Yo can download version directly from the browser by navigating to http://nuget.org/api/v2/package/Facebook/6.4.0 rename the .nupkg to .zip and extract it using your favorite zip program.




回答2:


There is a alternative open-source IDE sharpDevelop. It can add packages to your projects. It works with the visual Studio files!

In the latest version the plugin is even independent from wether the plugin for visual studio is installed or not! Nuget in SharpDevelop

PS: It does have some limitations in comparison with the plugin from VS, complexe packages will fail to do everything that they are supposed to do. Interactions with the IDE for instance will likely fail. ( So MVC 3 model generation will not work if you install that package with SharpDevelop)




回答3:


VS 2012 has the option, under Tools->Library Package Manager.




回答4:


You could get the Facebook SDK source from github and add a reference to the sdk project from your solution.

Or just build the libraries from the Facebook SDK solution and reference them in your project.



来源:https://stackoverflow.com/questions/11036060/install-c-sharp-library-without-the-package-manager-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!