Configuring Huron NuGet Package Source in Visual Studio
The .NET client library is packaged and hosted on a Huron NuGet server. To use this package in your own .NET project you must first configure the NuGet server as a package source. After configuring the package source, the package can be installed by your projects.
Setup Package Source
- Start Visual Studio, then select Tools > Options...
Expand NuGet Package Manager, then select Package Sources.
Click the plus button in the upper right corner of the Options dialog box.
At the bottom of the Options dialog box, enter the following:
- Set the Name to
Huron
- Set the Source to
http://nuget.huronsoftware.com/nuget
- Set the Name to
Click the Update to save the package source.
Click OK to close the Options dialog box.
The Huron NuGet server is now set up and ready to be used in your .NET based projects.
Installing .NET client library
Visual Studio provides a graphical user interface (GUI) and a command line for installing a NuGet package into your .NET projects.
Package Manager GUI
- Start Visual Studio, and open the solution in which you want to add the .NET client library.
Select Tools > NuGet Package Manager > Manage NuGet Packages for Solution... This will open the Manage Packages for Solution design window.
Click the Browse tab.
Click the Package source arrow and select Huron.
In the search box, type
Huron.IrbExchange
.Select the
Huron.IrbExchange
package that is listed.- Select the project(s) in which you want to install the package from the right hand side of the design window.
Click the Install button.
The .NET client library for the IRB Exchange is now installed.
Package Manager Command Line
- Start Visual Studio, and open the solution in which you want to add the .NET client library.
Select Tools > NuGet Package Manager > Package Manager Console This will open the Package Manager Console command line utility.
Select the project in which you want to install the package from the Default project drop down.
Run the following command:
PM> Install-Package Huron.IrbExchange -Source Huron
Repeat steps 3 and 4 for each project which requires the .NET client library.
The .NET client library for the IRB Exchange is now installed.