Windows.UI.Core.CoreWindow crash on boot

When I use Visual Studio, It auto generates some files. GamePage.cs has a big error.
When I run the project, it gets stuck on line 33
_game = MonoGame.Framework.XamlGame<Game1>.Create(launchArguments, Window.Current.CoreWindow, swapChainPanel);

The error I get shows up in a bubble below the line:
System.ArgumentException: 'An item with the same name has already been added. Key: Windows.UI.Core.CoreWindow'

I am running Windows 10, Fall Creators Update with MonoGame 3.7 development branch.

Do you get the same issues on R3.6?

What is R3.6? I just went to downloads and selected development branch.

R stands for Release…

3.6 requires a windows sdk that I could not find.

Windows 10 SDK (26624) and Microsoft Emulator for Windows 10 mobile
Note: Due to a versioning issue this release was previously referred to as (10240).
Start building Universal Windows apps and desktop apps for Windows 10 with this SDK. Released July 2015. (Version 10.0.26624.0)
Install SDK: [download link]
https://go.microsoft.com/fwlink/p/?LinkId=619296

EDIT

But as far as I recall I… hmm nvm I will just make my tutorial video soon… for a fresh dev environment…

This is an issue in the develop branch, there’s an open ticket on GitHub to track it: https://github.com/MonoGame/MonoGame/issues/6072

1 Like

I opened that :stuck_out_tongue:

2 Likes

Hah, alright :stuck_out_tongue: Well, looks like there is a PR up to fix it :slight_smile:

1 Like