Skip to content

Building the DS3 SDK NuGet package

hansdude edited this page Dec 10, 2014 · 3 revisions

Install the NuGet CLI

By default Visual Studio comes with NuGet package management, but you'll still need to get the CLI to create a package. The latest version of the cli is always available at http://nuget.org/nuget.exe. You'll have to place it in a directory that your PATH environment variable includes.

Build the NuGet Package

To build the package:

  • Open a command prompt
  • cd %path_containing_sdk_repository%\DS3
  • nuget pack Ds3.csproj -Prop Configuration=Release or nuget pack Ds3.csproj -Prop Configuration=Debug

Set Up a Local NuGet Repository

To install the package you've just created into a client project, you can simply configure Visual Studio to use the DS3 directory as a NuGet repository.

  • Open Visual Studio
  • Navigate to Tools -> NuGet Package Manager -> Package Manager Settings
  • Navigate to NuGet Package Manager -> Package Sources
  • Click the "+" sign button to add a repository.
  • Change the "Name" to whatever you like.
  • Change the "Source" to %path_containing_sdk_repository%\DS3
  • Click OK

You now have the DS3 SDK available as a NuGet package. See NuGet.org for more information about how to use NuGet.