Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.BadImageFormatException on Mac. #6

Open
MuffinHop opened this issue Apr 19, 2022 · 0 comments
Open

System.BadImageFormatException on Mac. #6

MuffinHop opened this issue Apr 19, 2022 · 0 comments

Comments

@MuffinHop
Copy link

Hello!

Getting the following type error on my M1 Mac when trying to debug the example project in README!

From this line.
GuiRenderer = new ImGUIRenderer(this).Initialize().RebuildFontAtlas();

The error is the following:

System.BadImageFormatException: Expected reference type but got type kind 17
File name: 'MonoGame.ImGui'
  at MonoGame.ImGui.ImGUIRenderer.Initialize () [0x0000e] in /Monogame.ImGui/MonoGame.ImGui/ImGUIRenderer.cs:66 
  at RabbitEngine.SceneView.Initialize () [0x0007c] in /Users/myname/Repositories/RabbitEngine/RabbitEngine/SceneView.cs:40 
  at Microsoft.Xna.Framework.Game.DoInitialize () [0x0002c] in <8f3f3a1b6ac843848b40be60a3b6f853>:0 
  at Microsoft.Xna.Framework.Game.Run (Microsoft.Xna.Framework.GameRunBehavior runBehavior) [0x0002d] in <8f3f3a1b6ac843848b40be60a3b6f853>:0 
  at Microsoft.Xna.Framework.Game.Run () [0x0000c] in <8f3f3a1b6ac843848b40be60a3b6f853>:0 
  at RabbitEngine.Program.Main () [0x00018] in /Users/myname/Repositories/RabbitEngine/RabbitEngine/Program.cs:12 

Thank you for your help in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant