This is the project file for the standalone version of Steamworks.NET. This is designed to be used with non Unity applications.
-
A: The recommended route is to build the standalone assemblies with the project file located in
Standalone/or download the prebuilt binaries which are available on the Releases page.- Open the Visual Studio solution (.sln) file, build both targets one for Windows and one for OSX & Linux. (Optional if you downloaded a prebuilt version)
- Reference the built assembly (Steamworks.NET.dll) in your project.
- Start coding! Call SteamAPI.Init() before initializing your renderer.
-
B: Otherwise, copy
Plugins/Steamworks.NETdirectly into your C# project. In Visual Studio open your project properties, change to the Build tab and defineSTEAMWORKS_WINorSTEAMWORKS_LIN_OSXglobally viaConditional compilation symbols.- This is only recommended if your binary is not portable across platforms already. If you ship on multiple platforms you must have multiple build targets for each platforms. Please prefer the first route.
-
When you build your application the following files must be copied into the output dir:
- All Platforms:
- steam_appid.txt - Required for testing your application outside of steam. Do not ship this to customers!
- Steamworks.NET.dll - Make sure it's the correct version for the platform that you plan on shipping for! - When building for OSX or Linux the wrong Steamworks.NET.dll will be copied over by default, it is recommended that you create a post build script to copy the correct version.
- Windows:
- steam_api.dll
- OSX:
- steam_api.bundle
- Steamworks.NET.dll.config - This lets Mono know where to find CSteamworks.
- Linux:
- libsteam_api.so
- All Platforms:
Have a look at this example project to get started.