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

Added multitarget support for the Windows App SDK #17

Merged
merged 4 commits into from
Feb 1, 2022

Conversation

Arlodotexe
Copy link
Member

@Arlodotexe Arlodotexe commented Dec 16, 2021

Added multitarget support for the Windows App SDK. Closes #14

This PR:

  • Adds CommunityToolkit.Labs.WinAppSdk - for the multi-sample app.
  • Adds CanvasLayout.WinAppSdk - for the single-sample app.
  • Evolves Labs.UnoLib.props - Is now Labs.MultiTarget.props and adds WinAppSDK alongside UWP and Uno.
  • Adds net6.0-windows10.0.19041.0 - as a TargetFramework for libraries and projects.
  • Adds WINAPPSDK - as a compilation conditional.
  • Updates all XAML and C# - to use the correct namespaces between UWP / Uno and WinAppSDK.
  • Keeps the WinUI 2 version of Uno.UI - when running under WebAssembly, instead of the newer WinUI3 Uno.WinUI.
  • Updates all solutions - Includes the new projects as needed.
  • Has been tested - All projects and solutions have been individually tested for breaking changes.

Before testing, you MUST do a full clean. Visual Studio may fail to find some assemblies otherwise, and you'll get a "No sample pages were found :(" message.

image

Copy link
Member

@michael-hawker michael-hawker left a comment

Choose a reason for hiding this comment

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

Couple of small things but looks good. To clarify, with this setup, our library packages in Labs, we build with out of the box support for:

  • UWP
  • WinUI 3/WinAppSDK
  • Uno/WASM w/ UWP

But not the Uno for WinUI3? (TBH, I'm still a bit fuzzy on how Uno splits between UWP and WinUI 3)

@michael-hawker
Copy link
Member

Oh, also the generated files aren't part of the .gitignore... 😋

@Arlodotexe Arlodotexe merged commit f68b838 into main Feb 1, 2022
@Arlodotexe Arlodotexe deleted the feature/winappsdk branch February 1, 2022 19:10
Martin1994 pushed a commit to Martin1994/Labs-Windows that referenced this pull request Sep 2, 2023
…nappsdk

Added multitarget support for the Windows App SDK
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.

Add WinUI 3 Multi-target/Heads
3 participants