Binaries Packages
Current stable version of SharpDX is 2.4.2.
SharpDX binaries are directly available from SharpDX google code download page or from nuget packages.
SharpDX is now bundled into 2 separate packages, for all platforms and .NET Framework:
- A Binary only package,
SharpDX-Bin-2.4.2.exe that contains only binaries necessary to developed with SharpDX.
- A Full package,
SharpDX-Full-2.4.2.exe that contains binaries, full documentation and all samples.
- Or via
Nuget Packages, providing binaries for .NET 2.0-4.0 and WinRT, with debugging information and source code stepping.
The content of the archive is structured like this:
| Bin
| | Standard-net20 : Standard Binaries for Windows Desktop
| | API up to DirectX11.0 (compatible with DirectX June 2010 runtime)
| | Supporting .NET Framework 2.0 to 4.5+ and Mono 2.10+
| | Signed-net20 : Standard Signed Binaries
| |
| | Standard-net40 : Standard Binaries for Windows Desktop
| | API up to DirectX11.0 (compatible with DirectX June 2010 runtime)
| | Supporting .NET Framework 4.0 to 4.5+ and Mono 2.10+
| | Signed-net40 : Standard Signed Binaries
| |
| | Standard-winrt : Standard Binaries for Windows 8 Modern/WINRT
| | Providing only DirectX11.1 API
| | Supporting .NET Framework 4.5Core
| | Signed-winrt : Standard Signed Binaries for Windows 8 Modern/WINRT
| | Providing only DirectX11.1 API
| | Supporting .NET Framework 4.5Core
| |
| | Win8Desktop-net40 : Windows 8 Desktop Binaries
| | Providing only DirectX11.1 API
| | Supporting .NET Framework 4.0 to 4.5+ and Mono 2.10+
|
| Documentation : Full generated documentation with a comprehensive Class Library Reference
|
| Samples : More than 40 C# samples for Desktop application and 10 samples for Windows 8 Metro Application.
Note: Windows 8 Metro samples are only accessible from Visual Studio 2012 running on Windows 8 RTM.
Runtime Requirements
- .NET Framework installed (depending on your application requirements 2.0 to 4.5)
- For desktop, the DirectX June 2010 Redistributable Runtime. Note that when some API (for example Direct3D11 without using D3DX functions) don't require any DirectX runtime installed.
- For Windows 8 Metro, the DirectX11.1 runtime is already part of the OS.
Source building
You can also build directly from the sources.
- Get a local copy of the sharpdx repository with this command:
git clone https://code.google.com/p/sharpdx/
- .NET 3.5 Framework is required to build SharpDX (This is for example not installed by default on Windows 8)
- Download and install the DirectX SDK June 2010. SharpDX build is expecting the DXSDK_DIR environment variable to point to the DirectX SDK directory. This variable is setup automatically when installing the DirectX SDK.
- Download and install Microsoft Windows 7.1 SDK to compile Net20/Net40 release under Windows 8 / Visual Studio 2012
- To build SharpDX for Windows Desktop or Windows RT, open the solution SharpDX.sln and select the target you want to build:
- Net20Debug/Net20Release: To build the standard desktop SharpDX for .NET 2.0
- Net40Debug/Net40Release: To build the standard desktop SharpDX for .NET 4.0
- Win8Debug/Win8Release: To Build SharpDX for Windows 8 Metro (Requires Visual Studio 2012)
- Direct3D11_1Debug/Direct3D11_1Release: To Build SharpDX for Windows 7/8 Desktop (Requires Visual Studio 2012)
- To build SharpDX for Windows Phone 8, select SHarpDXWP8.sln solution
Requirements
- Visual Studio 2010 (Express editions are not supported).
- Visual Studio 2012 RTM, only required if you are trying to compile SharpDX for Windows 8 Metro
- DirectX SDK June 2010
- Microsoft Windows 7.1 SDK to compile Net20/Net40 release under Windows 8 / Visual Studio 2012