Could you elaborate on “can’t get it to work at all”?
The number of people using Visual Basic with MonoGame is very small. None of the core developers use VB (I touched it once in 1997), so support for VB is in the hands of the community who can and want to use the language.
NP. Glad it partially works for you. which version did you grab? There are two versions, Win10 UAP and Win Desktop.
FYI, the Win desktop version runs on OpenGL, because the MonoGame with DirectX binary refused to accept any version of SharpDX that I threw at it. If you need DirectX, I can try figuring this issue out. Alternatively, if you figure out what the problem was, I’d be curious how you solve it.
Oh, the Windows 10 UAP version. I posted two links on that page. So, quick question: do you have Win10 & the Win 10 SDK installed?
The only MG references that project has are MonoGame.Framework (i think i grabbed MG 3.5 for this one, but 3.4 should work just fine.), SharpDX, SharpDX.Direct2D1, and SharpDX.Direct3D11. All the other references were whatever a basic VB template for Win10 UAP came with.
I’m having a real blonde day! Yes of course the SDK is part of the VS install, and yes it’s all installed and up to date. Not sure what the standalone has added, if anything.
I don’t understand where the System.Runtime problem is coming in.
@MuntyScruntFundle, I think i messed up the project when I cleaned it up. I was getting the same error. I remade the project and uploaded it to the same location. Try grabbing it again and testing it. Otherwise, I can just walk you through what I did to get it up and running.
Getting there, now there are only 136 errors! Reference required to mscorlib and Missing Core Assembly. And a few warnings about System.Reflection, Monogame, MicrosoftXNA, Framework doesn’t contain any public member or cannot be found.
Well, Monogame is installed, so is XNA.
I’m afraid fault finding this is a bit beyond me. I really do appreciate your help though.
Add nuget packages: MonoGame.WindowsUAP, SharpDX, SharpDX.Direct3D11, and SharpDX.Direct2D1
Then drop in the Game1 and MainPage classes from my template
…
Profit!
If any of these steps fail, particularly step 1, 2, or 5, then there’s more going on than just a faulty template. Unfortunately, detailed VB debugging is not my forte. I haven’t written VB in 15 years.
Hi Vogles. Well, after a fair bit of jiggering and pokering I think I’m almost there. I’ve checked all the nugets, they’ve all ended up in my references for some reason. I’ve created new classes and copied over your Game1 and MainPage code.
I have one error now:
‘C:\blahblah…\MonoGame.Framework.WindowsUAP\3.4.0.459\lib\netcore\Monogame.Framework\MonoGame.Framework.xr.xml’ does not exist.
Yeah, that’s a really silly issue I’ve run into in the past, but only when manually adding the references. I’ve never received that error using Nugets.
So, the solution is to go into that folder that it’s talking about. Under netcore, you’ll find the file the compiler is complaining about. just move/copy it to a folder named Monogame.Framework under the netcore directory. That should fix it.