Skip to content

Installation

Ryan Stecker edited this page Jul 10, 2013 · 1 revision

Installation

As SteamKit2 is a .NET library, installing is as simple as adding the library as a reference to your project.

There are, however, some specific steps to take depending on your development environment.

Visual Studio

If you're using Visual Studio, the preferred method of adding SteamKit2 to your project is to use the package manager and install the NuGet package.

If you don't have NuGet installed, start by installing it.

After that, there are two ways to install the NuGet package:

Regardless of the method, the package you want to install is named SteamKit2.

After installing the package, NuGet should work out the dependencies, download the required binaries, and add a reference to SteamKit2 to your project.

Other

If you're not using Visual Studio, or otherwise can't use NuGet, you can download a SteamKit2 binary package from our releases page.

After that, simply extract the library files to a directory of your choosing, and add SteamKit2.dll as a reference to your project.

Dependencies

If you are compiling SteamKit2, note that the project requires protobuf-net in order to build.

If you are using Visual Studio, NuGet should automatically resolve this dependency and download the required version of protobuf-net and add it as a reference to the SteamKit2 project. This step happens when building the project.

If for some reason this does not happen, please ensure that your NuGet is up to date and that you have enabled Package Restore.

If you are not using Visual Studio or NuGet, you must manually download and install protobuf-net and add it as a reference to the SteamKit2 project.

Deployment

When deploying an application that uses SteamKit2, be sure to include SteamKit2.dll and the required dependency, protobuf-net.dll, with your program.