0x0ade / ImGuiCS

Heavily modified fork of ImGui.NET + SDL2-CS, XNA and FNA samples
MIT License
7 stars 0 forks source link

Code uses notations that will not compile on Visual Studio 2010 #3

Closed BurgerBob closed 7 years ago

BurgerBob commented 7 years ago

Notations like : public static void NewFrame() => ImGuiNative.igNewFrame();

Visual Studio 2010 is the latest visual studio that supports XNA officially.

0x0ade commented 7 years ago

Visual Studio 2015 technically still supports XNA and I didn't take this into account. Thanks for telling me this! But unfortunately I don't plan on maintaining compatibility with an even more outdated compiler than the one shipping with VS 2015. (I'm already avoiding the new language features in VS 2017.)

Nevertheless, the resulting assembly still works fine. You can simply compile ImGuiXNA using any newer Visual Studio version separately and add the resulting ImGuiCS.dll and ImGuiXNA.dll as references to your project as usual:

Debug.zip

0x0ade commented 7 years ago

If you really require VS 2010 compatibility and want to help me out with this (because I can't tell what's supported and what's not), I'm happy to merge any pull request getting it to compile in VS 2010! I'll just not be able to verify it.

BurgerBob commented 7 years ago

No I think you made the right choice.

Thank you you made me find out that Microsoft now makes it easy to download old versions of its tools (it did not use to be the case).

So if I understand well, "official" version to use XNA is now Visual 2015 with https://mxa.codeplex.com/. Maybe putting it in the Readme.me ?

Thanks

2017-08-31 19:12 GMT-04:00 Maik Macho notifications@github.com:

If you really require VS 2010 compatibility and want to help me out with this (because I can't tell what's supported and what's not), I'm happy to merge any pull request getting it to compile in VS 2010! I'll just not be able to verify it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/0x0ade/ImGuiSDL2CS/issues/3#issuecomment-326444542, or mute the thread https://github.com/notifications/unsubscribe-auth/AEsoHGMzSTL6Qkc3LX-CJwlsb6atXTiEks5sdz3WgaJpZM4PJcws .

0x0ade commented 7 years ago

Yup, while it's "inofficial", the downloads provided by MXA offer a great way to get XNA Game Studio running in Visual Studio 2015. I personally haven't had any issues with that (although I'm only developing mods, not full games). I'll put this into the README.md soon, good point