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

Hope to move to UWP Modern .NET in the future #53

Open
Gaoyifei1011 opened this issue Sep 15, 2024 · 5 comments
Open

Hope to move to UWP Modern .NET in the future #53

Gaoyifei1011 opened this issue Sep 15, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@Gaoyifei1011
Copy link
Contributor

Hope to move to UWP Modern .NET in the future
希望未来能迁移到 UWP Modern .NET

Microsoft 已经官宣了 UWP Modern .NET 的支持,希望未来能将 WinverUWP 迁移到 Modern .NET
Mikrosoft has officially announced the support of UWP Modern .NET and hopes to migrate to UWP Modern .NET in the future

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

@dongle-the-gadget
Copy link
Owner

I do know about this, however the lack of WinUI 2 (currently) is a blocker.

@dongle-the-gadget dongle-the-gadget added the enhancement New feature or request label Sep 15, 2024
@Gaoyifei1011
Copy link
Contributor Author

I do know about this, however the lack of WinUI 2 (currently) is a blocker.

Indeed, the lack of winui2 is currently a major barrier to upgrading to modern .NET. If you really want to experiment with winui2 modern .net, you can use the driver1998 DisposableMemory.ModernNetUAP.WinUI nuget package to test it out until Microsoft officially supports it
确实,目前缺少 winui2 的确是升级到 modern .net 的一大障碍。如果您真的想要使用 winui2 modern .net 尝鲜,您可以使用 driver1998的 DisposableMemory.ModernNetUAP.WinUI nuget包来进行测试,直到微软正式支持

link
https://www.nuget.org/packages/DisposableMemory.ModernNetUAP.WinUI
https://www.nuget.org/packages/DisposableMemory.ModernNetUAP.XamlCompiler

@dongle-the-gadget
Copy link
Owner

I haven’t managed to get that package working.

@Gaoyifei1011
Copy link
Contributor Author

I haven’t managed to get that package working.

You can see driver1998's sample:https://github.com/driver1998/NetCoreApp

@driver1998
Copy link

driver1998 commented Sep 24, 2024

I haven’t managed to get that package working.

My WinUI 2 projection package did not work with WASDK single project MSIX packaging, since it provides its own WebView2 projection, which conflicts with the one implicitly referenced in WASDK.

The new preview should fix this (it now uses projections from a preview version of WebView2 nuget).
https://www.nuget.org/packages/DisposableMemory.ModernNetUAP.WinUI/2.8.6.3-preview

I would not recommend the hacks in ModernNetUAP.XamlCompiler anymore and plan to deprecate it once VS 17.12 hits GA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants