Closed egvijayanand closed 2 years ago
I am also seeing the same type of error when running unit test.
Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Testhost process exited with error: It was not possible to find any compatible framework version The framework 'Microsoft.Maui.Extensions', version '6.0.100-preview.6.1003+sha.5c159aabf-azdo.4977641' was not found.
- No frameworks were found. You can resolve the problem by installing the specified framework and/or SDK. The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.Maui.Extensions&framework_version=6.0.100-preview.6.1003+sha.5c159aabf-azdo.4977641&arch=x64&rid=win10-x64 . Please check the diagnostic logs for more information. at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.ThrowOnTestHostExited(Boolean testHostExited) at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources, String runSettings) at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler2 eventHandler)
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.
Issue still persists in .NET 6 Preview 7.
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.
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.
@jsuarezruiz / @Redth / @davidortinau - is MAUI Essentials support for WPF something we can postpone to a later release?
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, Vijay Anand E G
This is the error that is still showing on launching the application.
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