Make NuGet install DirectX packages instead of OpenGL

I’m following a Monogame shader tutorial in order to add effects to my existing project. The tutorial has the effects written in HLSL (DirectX) whereas my projects seem to be OpenGL - the properties of the MonoGame.Framework reference is MonoGame for Windows Desktop (OpenGL).

I created a plain WPF app, then added MonoGame from NuGet, using v3.2.3-alpha. I’m not sure how NuGet decided to install the OpenGL version.

Is there a way to make NuGet install the DirectX packages so I can keep following this tutorial?

@SimonDarksideJ

The DirectX version isn’t currently included in the NuGet package. If you want to use it, you’ll have to use the installer, from the Downloads section of the MonoGame website (make sure you get the nightly build, if you want an up-to-date version).

However, there’s an ongoing discussion about the NuGet packages. One of the possible outcomes is that there might be a DirectX-specific NuGet package for MonoGame. There’s actually a poll for it here: http://twtsurvey.com/MonoGameNuGetSurvey

1 Like

Gah, Tim beat me to it :smiley: (that’s what I get for being in a later timezone)

The issue log in question on GitHub is https://github.com/mono/MonoGame/issues/2843#issuecomment-70352366
If you are feeling adventurous, I also posted up some sample NuGet’s to that discussion for testing.

1 Like

Thanks! Installed the package from the dropbox and it’s all working now.

Voted in the survey too - I definitely support a package per platform.

Great stuff, but if you saw the results, the survey is a bit mute now :smiley:
And as you saw from the Git issue thread, the packages are already done :wink: and ready. Help test if you can on as many platforms as you can.

Hmm, still need to sort the PSM one out though :frowning: