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

Drop support for UWP #2450

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

Jklawreszuk
Copy link
Collaborator

@Jklawreszuk Jklawreszuk commented Sep 14, 2024

PR Details

This PR drops support for UWP and it's codebase.

The main reason is that UWP support has been abandoned since .NET 5 and Microsoft recommends to migrate to MS GDK for Xbox consoles.

That said, the last version that targeted .NET 5 version was a very long time ago (4.1.0.1459-beta) and this PR is also intended to avoid unnecessary frustration for new developers over a feature that is long gone.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run the editor to try this change out.

@VaclavElias
Copy link
Contributor

This test is missing " I have built and run the editor to try this change out." 🤣

@Jklawreszuk
Copy link
Collaborator Author

@VaclavElias Welp...Testing always takes more time, but if you want to help speed it up, feel free to test it by yourself 😜

Copy link
Collaborator

@Eideren Eideren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a couple of notes

Comment on lines -207 to -208
if (Platform.Type != PlatformType.Windows && Platform.Type != PlatformType.UWP)
throw new NotSupportedException();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is wrong, it should still throw when the platform is not windows

Comment on lines -94 to -99
#if STRIDE_GRAPHICS_API_DIRECT3D11 && STRIDE_PLATFORM_UWP
if (Windows.Graphics.Holographic.HolographicSpace.IsAvailable && GraphicsDevice.Presenter is WindowsMixedRealityGraphicsPresenter)
{
Device = new WindowsMixedRealityHmd();
}
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to throw a not supported here instead of silently failing ? Granted that's what it would have done before outside of UWP

@MeharDT
Copy link
Contributor

MeharDT commented Nov 10, 2024

Should we reconsider this PR in light of .NET 9 adding legacy support for UWP? At the very least it helps us migrate Stride users away from 4.0 and .NET Framework if they want UWP support.

https://devblogs.microsoft.com/ifdef-windows/preview-uwp-support-for-dotnet-9-native-aot/

@Eideren
Copy link
Collaborator

Eideren commented Nov 10, 2024

@MeharDT I was not aware of this one, you're right, we'll revisit this issue whenever UWP support becomes problematic then

@Jklawreszuk Jklawreszuk marked this pull request as draft November 10, 2024 21:45
@Jklawreszuk
Copy link
Collaborator Author

Jklawreszuk commented Nov 10, 2024

I marked PR as draft for now. We'll see what happens next with UWP support

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

Successfully merging this pull request may close these issues.

4 participants