Installation |
This page describes the distribution process for releases of this library, and the installation process to enable your project to use the library features.
Releases of this library are distributed through NuGet with the package ID TunnelVisionLabs.Net.UriTemplate. In addition to the release binaries, symbol files and source code are published to SymbolSource. By configuring Visual Studio (or another supported debugger) to use SymbolSource for debugging symbols, library users will be able to automatically step into the source code for this library if necessary during debugging.
The easiest way to install NuGet packages in Visual Studio 2012 and newer is using the NuGet Package Manager extension for Visual Studio.
Right click the top-level solution node in Solution Explorer and select Manage NuGet Packages for Solution...
In the left pane, click the Online node and select nuget.org.
In the search box in the top right, enter TunnelVisionLabs.Net.UriTemplate.
In the search results, locate and select the TunnelVisionLabs.Net.UriTemplate package. Verify that the Id listed in the right hand pane is TunnelVisionLabs.Net.UriTemplate.
Click the Install button. When the Select Projects window appears, check the box(es) for the projects in which you wish to reference the URI Template library. Note that if you ever need to make changes to this selection, you can follow these steps again but choose the Installed packages node in the left pane instead of the Online node.
The commercial editions of Visual Studio 2010 are able to use the NuGet Package Manager extension for Visual Studio. For these editions, follow the same steps as Visual Studio 2012 and Newer, shown above.
The express editions of Visual Studio 2010 do not have access to the NuGet Package Manager extension for Visual Studio. Users with these editions must use the NuGet command line tools instead. Follow the same steps as users without Visual Studio, shown below.
The NuGet Package Manager extension for Visual Studio does not support Visual Studio 2008. Users with these versions must use the NuGet command line tools instead. Follow the same steps as users without Visual Studio, shown below.
The manual installation process describes file system paths containing references to several variables.
The path to your solution file if one is used; otherwise, the path to the root folder of your project structure.
The version of this library which is installed for the project. This version number is reported by the command line tool when the install command is executed.
The version of the .NET Framework relevant to your library. Since the specific framework builds provided by this package could change over time, users are encouraged to choose from the contents available after the install command is executed.
The following steps describe the manual installation process for this package using the NuGet command line tool.
Download the NuGet command line utility. The latest version of the utility is always available at this direct download address.
Open a command line prompt to the directory where external libraries used by your project are stored. At this location, execute the following command. For the remaining steps, I'll assume the directory is $(SolutionDir)\lib.
nuget.exe install TunnelVisionLabs.Net.UriTemplate
In your project, add a reference to the following assembly.
$(SolutionDir)\lib\TunnelVisionLabs.Net.UriTemplate-$(Version)\lib\$(Framework)\TunnelVisionLabs.Net.UriTemplate.dll