-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug] Using Maui Essentials in a non-MAUI app throws an error on launch #1779
Comments
I am also seeing the same type of error when running unit test.
Except it is related to the Microsoft.Maui.Extensions dll. Like you it worked on Preview 5 and now with the new WorkLoad stuff it no longer works. I am able to run MAUI applications fine. |
Yes, the issue is only with a non-MAUI app in .NET 6 Preview 6. MAUI app works fine. |
There is not an WPF target in Essentials: https://github.com/dotnet/maui/blob/main/src/Essentials/src/Essentials-net6.csproj#L3 We are going to review this scenario. |
Same is the case with a WinForms application too. Kindly include that scenario as well. |
@jsuarezruiz / @Redth / @davidortinau - is MAUI Essentials support for WPF something we can postpone to a later release? |
verified repro with VS 17.2.0 Preview 2.0 [32302.528.main] |
This is a duplicate of #4779 |
Hi @mattleibow, I'm not sure whether you've gone through the issue details or conservation pertaining to that.
But it's definitely not a duplicate of #4779, that is about referencing the Maui Essentials in a Razor Class Library (RCL) whereas this is about an issue that occurs during the launch of the application that uses Maui Essentials in other Windows Client applications like WinForms / WPF. The issue is still simulating with the attached project, hence kindly reopen this issue. Regards, |
Essentials is not currently supported and there are no plans at this time to add support in WPF |
Description
Using Maui Essentials in a non-MAUI app throws an error on launch though the build succeeded
Steps to Reproduce
<UseMauiEssentials>true</UseMauiEssentials>
in the project fileNote: NuGet package source is configured with Maui Preview repo (https://aka.ms/maui-preview/index.json)
Expected Behavior
The application is expected to run without any issues.
Actual Behavior
Displays a dialog to download the .NET since Microsoft.Maui.Essentials could not be found.
The .NET 6 Preview 6 SDK itself is installed on the machine.
Basic Information
Screenshots
Reproduction Link
Workaround
The text was updated successfully, but these errors were encountered: