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

Mono: Show custom error explaining that UWP is not supported #64778

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

akien-mga
Copy link
Member

Fixes #64490.

It's slightly hacky because I left the door open for people potentially providing their own Mono-enabled UWP templates. I'm not aware of anyone actually having implemented such support, but who knows (I guess if someone really cares they could figure out how to use IL2CPP to compile the C# code to C++ in the template, and thus be able to use a non-Mono UWP template to export their game).

Initially I was thinking that this might be needed for Pineapple's Mono support on Xbox, but reading again I see they're using GDKX so it shouldn't matter. CC @wkubiak anyway FYI.

My first implementation was skipping the whole export.cpp logic, which fully hides the "UWP" entry from the list, but then you get an error if you e.g. have a GDScript project with a configured UWP preset and you then load it in a Mono build (e.g. to start using C# additionally). And this error can't be removed until you edit export_presets.cfg manually to remove the section about UWP, since it doesn't show in the UI to do so.

@akien-mga akien-mga added enhancement topic:dotnet topic:export cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release labels Aug 23, 2022
@akien-mga akien-mga added this to the 3.6 milestone Aug 23, 2022
@akien-mga akien-mga requested a review from a team as a code owner August 23, 2022 10:53
@akien-mga akien-mga requested a review from a team August 23, 2022 10:54
@akien-mga akien-mga force-pushed the 3.x-mono-uwp-unsupported branch from 52e7244 to ceef056 Compare August 23, 2022 11:21
@wkubiak
Copy link

wkubiak commented Aug 23, 2022

@akien-mga thanks for the CC. We (Pineapple Works) are OK with this change. We don't rely on UWP.

@akien-mga akien-mga merged commit 0881ca5 into godotengine:3.x Aug 31, 2022
@akien-mga akien-mga deleted the 3.x-mono-uwp-unsupported branch August 31, 2022 19:03
@akien-mga
Copy link
Member Author

Cherry-picked for 3.5.1.

@akien-mga akien-mga removed the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants