How to include the Microsoft.DirectX in .NET WPF applications? RRS feed

  • Question

  • Hey guys, I am having Windows 8.1 installed and Visual Studio 2013. Whenever I try to access the DirectX namespace, using

    using Microsoft.DirectX;

    ..it doesn't work for me.

    What should I do? What might be the error, since in the Add References tab it isn't shown. 


    Thursday, August 28, 2014 9:26 PM


  • Hello Afzaal,

    The Microsoft.DirectX.dll is not included in the .NET Framework, so that in the Add References tab it isn't shown.

    Although the managed DirectX wrappers are obsolete. You can still download it here. Replacement is XNA.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, August 29, 2014 5:54 AM