Problem with compiling assets (VS2015 + Monogame 3.4)


I’m porting an older XNA project to Monogame 3.x and have succeeded everything else but get assets compiled automatically.

When I build the project from VS 2015 I get the following error:

The command ““C:\Program Files (x86)\MSBuild\MonoGame\v3.0\Tools\MGCB.exe” /@:"" /platform:Windows /outputDir:“D:\Devprojects\game\smithNgine\smithTest\smithTest\Content\bin\Windows” /intermediateDir:“D:\Devprojects\game\smithNgine\smithTest\smithTest\Content\obj\Windows” /quiet” exited with code -532462766

I assume the problem is the bolded part which should contain the path to the Content.mgcb file. Now the path is empty.

If I compile manually from the command prompt and insert the correct path to the content.mgcb file it works as it should.

Any ideas how do I fix the problem in Visual Studio 2015.