sdk: [regression/8.0.0-preview.6] Maui app won't start when referencing EpubSharp.dll package
Description
Since bugfixes are more or less abandoned for the .Net 7 branch, I started to migrate our internal app to .Net 8.
Today I installed the .Net 8 Preview 5, updated the MAUI reference to 8.0.0-preview.5.8529 in our csproj file and tried to fire it up on my windows machine using Visual Studio 17.7.0 Preview 2.0.
Deployment works fine, but immediately after that Visual Studio stops and the only thing in the debug output is
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core. The program '[19804] CompanyApp.exe' has exited with code 2147516547 (0x80008083).
This still worked fine, when I had everything running under .Net 8 Preview 4. I also verified that a brand new Maui project, created from Visual Studio’s Project template, deployed and started without issue. That probably means there’s something wrong with my setup, but I get next to nothing as info, leaving me stumped as to where I could look next?
Google led me to the conclusion that 0x80008083 stands for ‘CoreHostLibMissingFailure’ and that’s about it 😕
Steps to Reproduce
- Install .Net 8 Preview 6 SDK
- Raise MAUI version in csproj to 8.0.0-preview.6.8686
- Add EpubSharp NuGet package
- Start debugging on Windows
- Wait for error after successful deployment
Link to public reproduction project repository
Unfortunately I can not provide this, due to this being an internal project UPDATE: Easily reproducible by adding EpubSharp NuGet package to a new Vanilla Maui project
Version with bug
8.0.0-preview.6.8686
Last version that worked well
8.0.0-preview.4.8333
Affected platforms
Windows
Affected platform versions
Windows 10 (22H2), Maui 8.0.0-preview.5.8686
Did you find any workaround?
No, unfortunately UPDATE: Remove EpubSharp package
Relevant log output
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program '[19804] CompanyApp.exe' has exited with code 2147516547 (0x80008083).
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 1
- Comments: 23 (16 by maintainers)
They are doing this on Windows already:
https://github.com/dotnet/maui/blob/6aac924e89bbe5f92548d5f7d6c962f9336943ed/src/Workload/Microsoft.Maui.Sdk/Sdk/Microsoft.Maui.Sdk.Before.targets#L8-L9
It looks like this has been here since .NET 8 Preview 7.