This MGFX effect seems to be for a newer release of MonoGame

Hello, I installed the latest monogame for visual studio (3.5.1).

I´m using a custom project with VS2015 and using the latest MonoGame nuget package (3.5.1)

I compile an effect with the following command line:
“c:\Program Files (x86)\MSBuild\MonoGame\v3.0\Tools\2MGFX.exe” test.fx test.mgfxo /Profile:DirectX_11

But when I run this code:
_blurEffect = new Effect(GraphicsDevice, File.ReadAllBytes(“test.mgfxo”));

I get the followin exception:

An unhandled exception of type ‘System.Exception’ occurred in MonoGame.Framework.dll

Additional information: This MGFX effect seems to be for a newer release of MonoGame.

What am I doing wrong? Is the nuget package outdated compared to the visual studio monogame installer and that’s why I get that? If so, what should i do to use the latest version of monogame?

there are newer unstable versions, but first of all - did you rebuild the solution?

Just open to content manager of the solution and hit rebuild - that should take care of that problem.