Monogame 3.6 Debugging the game doesn't work after publish!

As title says, i have completed my first project in monogame after like 2 weeks of working pretty hard on it, and now after i published it, it doesn’t work. I can’t run the setup file that I got when i published game and I cant debug it in VS2015CE anymore.

When I run setup and try to install published version it says:
Cannot continue. The application is improperly formatted. Contact the application vendor for assistance

And when i try to debug the game it throws
An unhandled exception of type ‘System.ArgumentNullException’ occurred in mscorlib.dll
Additional information: Value cannot be null

I’ve seen this topic and he had basically same error like me but the problem is he fixed it by installing latest version of .Net, which i’ve done too but it sadly doesn’t fix the problem for me.

Thanks for the help.

1 Like

Is this issue on your dev machine or a test rig?

I dont have test machine, I tried it on my main pc.

Same problem here, i tried the solution given in the other topic. It doesnt work for me

Yeah i still didn’t fix it