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

The default MAUI and MAUI-Blazor projects do not work when published for Windows. #4010

Closed
aokocax opened this issue Jan 9, 2022 · 2 comments
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 t/bug Something isn't working

Comments

@aokocax
Copy link

aokocax commented Jan 9, 2022

Description

Hello, I published the projects by trying almost all the options, but all of them crash without any screen after the program is run.
I see attached error when I look from Eventviewer. I also tried it on both windows 10 and windows 11, no difference.

Tried options
Target runtime: Win10-x64,Win10-x86, Win-x64,Win-x86
Deployment mode: Self-contained, Framework dependent (it gives .net framework error but already installed)
Configuration: Debug-release
File publish options: Produce single file, Enable-disable ready to run, trim unused code.

ssdefault
ssop

Steps to Reproduce

  1. Create Maui or Maui-Blazor Projects
  2. Remove other platforms
  3. Publish for windows
  4. Click and run the exe file

Version with bug

Preview 10 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

net6.0-windows10.0.19041

Did you find any workaround?

No response

Relevant log output

Application: MauiApp22.exe
CoreCLR Version: 6.0.121.56705
.NET Version: 6.0.1
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException: Dll was not found.
   at MauiApp22.WinUI.Program.Main(String[] args)
@aokocax aokocax added the t/bug Something isn't working label Jan 9, 2022
@jsuarezruiz jsuarezruiz added the area-blazor Blazor Hybrid / Desktop, BlazorWebView label Jan 10, 2022
@mkArtakMSFT
Copy link
Member

Removing the Blazor label, as the issue happens also for non-Blazor project.

@mkArtakMSFT mkArtakMSFT added area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) and removed area-blazor Blazor Hybrid / Desktop, BlazorWebView labels Jan 19, 2022
@jfversluis
Copy link
Member

Hey everyone! I've been trying to look into this and wrote up all my findings in #4329. In an attempt to not be all over the place with this I'm closing this one, let's centralise the discussion in the aforementioned issue, thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Feb 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants