error CS7065: Error building Win32 resources (Workaround)

Once your create a new monogame project using:
dotnet new mgdesktopgl -o MyGame

When you build it, an error occurs:
CSC : error CS7065: Error building Win32 resources...

Also on:
https://githubmemory.com/repo/MonoGame/MonoGame/issues/7545

While this is not fixed, an easy workaround is to replace your “Icon.bpm” and “Icon.ico” from your game folder with those available here: https://github.com/MonoGame/MonoGame/tree/develop/Templates/MonoGame.Templates.CSharp/content/MonoGame.Application.DesktopGL.CSharp

Build your project again and it may run now.

I’m a Mac user and the version is g(old) High Sierra btw

btw, the real place where this was discussed was here: https://github.com/MonoGame/MonoGame/issues/7545

I don’t understand how githubmemory is getting such high rankings on Google.

Yeah, followed the step you mentioned but didn’t work for me as I had to replace Icon.bmp as well.

1 Like