Current stable version of SharpDX is 2.5.0.
SharpDX binaries are directly downloadable from this web site or available from nuget packages.
SharpDX is now bundled into 2 separate packages, for all platforms and .NET Framework:
- A Full installer package, SharpDX-Full-2.5.0.exe that contains binaries and samples. This is the recommanded way to install SharpDX. This installer adds the environement variable $(SharpDXSdkDir) to the system.
- A Binary only package, SharpDX-Bin-2.5.0.exe that contains only binaries necessary to developed with SharpDX.
- Or via Nuget Packages, providing binaries for .NET 2.0-4.0 and WinRT, with debugging information and source code stepping.
There is also a Visual Studio Extension available with Project Templates for the Toolkit. Search for SharpDX in Extension Manager in VisualStudio 2012 and install it from there
The content of the archive is structured like this:
| | (DirectXVersion)(-Signed)?-(Platform)
| | Where:
| | DirectXVersion : Define the DirectX version the assemblies were compiled
| | DirectX11 or DirectX11.1
| | Signed : Assemblies are signed
| | Platform : Specific assemblies per Platform where:
| | - net20: Assemblies for Windows desktop / compiled with .NET 2.0 framework
| | - net40: Assemblies for Windows desktop / compiled with .NET 4.0+ framework
| | - winrt: Assemblies for Windows Store App / compiled with .NET 4.5+ framework
| | - wp8-x86: Assemblies for Windows Phone 8 Emulator / compiled with .NET 4.5+ framework
| | - wp8-ARM: Assemblies for Windows Phone 8 Device / compiled with .NET 4.5+ framework
| | Redist : Contains redistribuable native dlls for D3DCompiler shipped when using for DirectX11.1
Note: Windows 8 Metro samples are only accessible from Visual Studio 2012 running on Windows 8 RTM.
Note: Windows 8 Phone samples are only accessible from Visual Studio 2012 with Windows Phone 8 SDK installed.
- .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.
You can also build directly from the sources.
- Get a local copy of the sharpdx repository from the SharpDX gihub repository with this command:
:sharpdx/SharpDX.git // use https://github.com/sharpdx/SharpDX.git if you don't have a github account
- .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
- Visual Studio 2012
- DirectX SDK June 2010
- Microsoft .NET Framework 3.5
- Microsoft Windows 7.1 SDK (If you have already VS2010 installed, you should not need this package)