Search code examples
c#.netdirectx.net-assembly

Where I can find Microsoft.DirectX assembly to reference


I am wondering where I can find Microsoft.DirectX assembly to reference?

It seems like MS Windows 7 has DirectX installed but I cannot find this assembly using Reference Manager Window of Visual Studio 2015.

Any clue what should be installed?


Solution

  • Microsoft.DirectX is the deprecated Managed DirectX 1.1 assemblies that date back to the early 2000s. They are deployed by DXSETUP from the legacy DirectX SDK. They are also not compatible with .NET 4.0, and only support Direct3D 9. In other words, they are ancient and don't use it.

    Instead you should use SlimDX or SharpDX.

    See DirectX and .NET