Binaries Packages

Current stable version of SharpDX is 2.6.3.

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:

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:

| Bin
|  | (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.

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.

  1. Get a local copy of the sharpdx repository from the SharpDX gihub repository with this command:
    git clone This email address is being protected from spambots. You need JavaScript enabled to view it.:sharpdx/SharpDX.git   // use https://github.com/sharpdx/SharpDX.git if you don't have a github account
    
  2. .NET 3.5 Framework is required to build SharpDX (This is for example not installed by default on Windows 8)
  3. 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.
  4. Download and install Microsoft Windows 7.1 SDK to compile Net20/Net40 release under Windows 8 / Visual Studio 2012
  5. To build SharpDX for Windows Desktop or Windows RT, open the solution SharpDX.sln and select the target you want to build:
    1. Net20Debug/Net20Release: To build the standard desktop SharpDX for .NET 2.0
    2. Net40Debug/Net40Release: To build the standard desktop SharpDX for .NET 4.0
    3. Win8Debug/Win8Release: To Build SharpDX for Windows 8 Metro (Requires Visual Studio 2012)
    4. Direct3D11_1Debug/Direct3D11_1Release: To Build SharpDX for Windows 7/8 Desktop (Requires Visual Studio 2012)
  6. To build SharpDX for Windows Phone 8, select SHarpDXWP8.sln solution

Requirements

  • 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)