Merge WinUI3 extensions
๐ถ Coming soon.
โ ๏ธ Work in Progress
๐ถ Coming soon.
โ ๏ธ Work in Progress
@dahall One question, when pushing a integration test version of WinUI package, will it be included in the nightly AppVoyer build when the merge is still in progress?
I guess not, or will it?
Regards, tajbender
@dahall One question, when pushing a integration test version of WinUI package, will it be included in the nightly AppVoyer build when the merge is still in progress?
I don't think so. Also, I have migrated away from AppVeyor and now use GitHub Actions to build after each commit and then post to MyGet.
I don't think so. Also, I have migrated away from AppVeyor and now use GitHub Actions to build after each commit and then post to MyGet.
That's fine for me. I'm asking cause I crashed my dev setup for any reason, nowadays i am not even able to compile my last revisions I checked in ๐ on the current Win 11 Insider / Visual Studio.
However, I restarted from scratch with the latest iterations of Win App SDK with focus on ExplorerBrowser control alone. Another question is targeting the Windows Community Toolkit.
I use some of their components within the codebase, but I guess you don't want such dependencies for Vanara. That's - however - not a show-stopper. I just would copy & paste i.e. import their classes into the package itself. There`re not that much classes I use, but I use some especially for performance reasons.
e.g.: https://github.com/CommunityToolkit/Windows/tree/main/components/Collections/src/AdvancedCollectionView
@dahall Is that okay to you?
@dahall Is that okay to you?
This all sounds good. I stay holding until I hear you are ready to integrate.
Thanks for your patience. I won't touch any other packages, nor do I need to for that stuff.
I'm living on the WinUI package island solely ๐ It's completely decoupled from the existing Vanara code base, I just use your Shell stuff.
The biggest Issue will be that namespaces and classes don't collide - beside code quality, for sure.
Curious to have you try the 4.1.0 packages. I added .net 9.0 support and removed 4.5. Most notable is that all handles are now generated. I'm trying my hand at generation before using in many more places and maybe even pulling in generated code from https://github.com/microsoft/win32metadata to recreate Vanara live like CsWin32, but with the Vanara primitives and design goals.
Thank you so much. Without doubt, the next days I finally will submit code.
As mentioned yesterday, NETSDK1138: The target framework 'net7.0-windows10.0.19041.0' is out of support.. made me crazy for weeks now, cause every then and when this error came and left, and I don't get the point.
Then I tried JetBrains Rider, and that beast doesn't even mention there could be a problem and compiles fine.
I'm definitely too old for this ๐ฉ - But I'm fine with the lessons learned, another year, another try ๐งจ. Now, I switched my dev-branch to reconfigure from scratch and ignore the .net7 issue. The XAML is already in, code stubs are coming. Everything works and compiles without this solely 'issue', but I don't even think it is one.
Long writing, short story: Now comes the fun part again, writing code ๐
@dahall Surprise!
I'm very happy to let you know that we'll not only have a full working clone of ExplorerBrowser, it will also add double pane mode by default, without any hassle ๐
if'd like to take a flight: https://github.com/electrifier/electrifier-v1.25.git โ ๏ธ
Curious to have you try the 4.1.0 packages. I added .net 9.0 support and removed 4.5. Most notable is that all handles are now generated. I'm trying my hand at generation before using in many more places and maybe even pulling in generated code from https://github.com/microsoft/win32metadata to recreate Vanara live like CsWin32, but with the Vanara primitives and design goals.
fyi, I'm taking the direct route ๐ซ
https://github.com/electrifier/electrifier-v1.25/commit/67417ed9245a7d81fc8313ed5134ee0193da7d66
Backtracking: WinUI 3 official Requirement:
Okay, I found the requirements: https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/system-requirements
The Windows App SDK has the following minimum system requirements:
- Windows 10, version 1809 (build 17763) or later.
- Visual Studio 2022, version 17.0 or later, with the required workloads and components.
- Visual Studio 2019, version 16.9 or later, with the required workloads and components.
- Windows SDK, version 2004 (build 19041) or later (included with Visual Studio 2019 and 2022 by default).
- If you plan to build .NET apps, you'll also need .NET 6 or later (see Download .NET).
@dahall Just a little update:
Deployed branch: https://github.com/electrifier/electrifier-v1.25/commits/reconfigure/
That's the warning I get with this setup:
Updating the layout...
Copying files: Total <1 mb to layout...
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Build completed at 09:55 and took 02.814 seconds ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
========== Deploy completed at 09:55 and took 02.814 seconds ==========
DEP0840: Project 'electrifier' requires packages
- _MicrosoftCorporationII.WinAppRuntime.Main.1.4_8wekyb3d8bbwe_ and
- _MicrosoftCorporationII.WinAppRuntime.Singleton_8wekyb3d8bbwe_ with version >= *4000.1010.1349.0*
These packages should be installed on first run, if not please visit [http://go.microsoft.com/fwlink/?linkid=2222757] for installation instructions.
Deployment complete (0:00:00.061). Full package name: "01234567-affe-0101"
Current Package config:
Copilot flies to:
Certainly! Developing a Windows app using the Windows App SDK with C# requires a few key components and steps. Here's a concise overview to get you started:
System Requirements Operating System: Windows 10 version 1809 (build 17763) or later. Development Environment: Visual Studio 2019 version 16.9 or later, or Visual Studio 2022. .NET SDK: .NET 5.0 or later. Software Requirements Windows App SDK: Install the latest version of the Windows App SDK. Visual Studio Workloads: Universal Windows Platform (UWP) development: Required for UWP apps. Desktop development with C#: Required for WinUI 3 desktop apps. Steps to Set Up Your Development Environment
Install Visual Studio:
Download and install Visual Studio from the official website. During installation, select the necessary workloads mentioned above.
Install .NET SDK:
Download and install the .NET SDK from the .NET website.
Install Windows App SDK:
Use the Visual Studio Installer to add the Windows App SDK extension. Alternatively, you can install it via NuGet in your project. Creating a New Project
Open Visual Studio.
Create a new project:
Select Create a new project. Choose a template such as Blank App, Packaged (WinUI 3 in Desktop) or Blank App, Unpackaged (WinUI 3 in Desktop). Click Next and configure your project settings.
Configure Project Dependencies:
Ensure your project references the Windows App SDK. Add necessary NuGet packages for WinUI 3 and other dependencies. Example Code Snippet
Here's a simple example of a WinUI 3 app in C#:
using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls;
namespace MyWinUIApp { public sealed partial class MainWindow : Window { public MainWindow() { this.InitializeComponent(); var textBlock = new TextBlock { Text = "Hello, Windows App SDK!", VerticalAlignment = VerticalAlignment.Center, HorizontalAlignment = HorizontalAlignment.Center }; this.Content = textBlock; } } }
This example creates a basic window with a centered text block displaying a greeting message.
Additional Resources Windows App SDK Documentation WinUI 3 Documentation
Feel free to reach out if you need more detailed guidance or have specific questions!
@dahall I upgraded to WinAppSDK 1.5, 1.5.25 - latest stable a far as i remember.
Just for your interest โน๏ธ
Here is what we would get, at least and so far:
The complete Controls namespace as seen here would be merged into the Vanara package, plus, at least a Breadcrumb Bar.
The Highlighted Ressource file will contain all i18n aware texts, that we'll use especially for Commands and Error / Info messages. I myself could provide German and English, obviously.
Just a Note: See https://github.com/CommunityToolkit/Windows/issues/533#issuecomment-2475033872
I had to target Windows version 22621 at least, to get the Windows Community Toolkit running:
When consuming the Toolkit, you must target Windows version 22621 instead of the prior 18362, i.e. if you were targeting net6.0-windows10.0.18362, you would target net6.0-windows10.0.22621 instead now. This does not affect your ability to run down-level with the minimum target version, that remains at 17763.