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

EXE files cannot be double-clicked to run #5327

Closed
JusterZhu opened this issue Mar 16, 2022 · 11 comments
Closed

EXE files cannot be double-clicked to run #5327

JusterZhu opened this issue Mar 16, 2022 · 11 comments
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working t/desktop The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)

Comments

@JusterZhu
Copy link

JusterZhu commented Mar 16, 2022

Description

System : Windows 11 Home Chinese Edition
Visual studio Version : 17.2.0 Preview 1.0
SDK: net6.0-windows10.0.19041

D:\git_community\MauiApp1\bin\Debug\net6.0-windows10.0.19041\win10-x64\MauiApp1.exe
D:\git_community\MauiApp1\bin\Debug\net6.0-windows10.0.19041\win10-x64\AppX\MauiApp1.exe

image

The exe files in the above two paths cannot be double-clicked to run , and it can't be started with Process .

Steps to Reproduce

`using System.Diagnostics;

Process p = new Process();
p.StartInfo.FileName = "MauiApp1.exe";
p.StartInfo.Arguments = "http://www.baidu.com";
var isComplated = p.Start();
Console.WriteLine(isComplated); //The result of running is true but no running .
Console.Read();`

Version with bug

Preview 13 (current)

Last version that worked well

Preview 13 (current)

Affected platforms

Windows

Affected platform versions

windows10.0.19041

Did you find any workaround?

No response

Relevant log output

No response

@JusterZhu JusterZhu added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Mar 16, 2022
@JusterZhu
Copy link
Author

@jfversluis
Copy link
Member

jfversluis commented Mar 16, 2022

Is this a release build or a debug build? And a regular .NET MAUI app or a Blazor one?

@jfversluis jfversluis added platform/windows 🪟 legacy-area-desktop Windows / WinUI / Project Reunion & Mac Catalyst / macOS specifics (Menus & other Controls)) area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Mar 16, 2022
@JusterZhu
Copy link
Author

Is this a release build or a debug build? And a regular .NET MAUI app or a Blazor one?

<1>debug build
<2>.NET MAUI

@jfversluis
Copy link
Member

I think this might be fixed by #5377

@JusterZhu
Copy link
Author

I think this might be fixed by #5377

Not the same, nothing happens after double click. don't show window.

@mattleibow
Copy link
Member

Is this an unpackaged app?

#3166

Normal/default windows apps cannot be launched as they are not normal apps. Unpackaged apps are what you might be looking for.

@JusterZhu
Copy link
Author

Is this an unpackaged app?

#3166

Normal/default windows apps cannot be launched as they are not normal apps. Unpackaged apps are what you might be looking for.

yes, not packaged.

@shimingsg
Copy link

verified repro with vs 17.2.0 Preview 3.0 [32317.292.main] on windows,
there is error event view:

Application: MauiApp5378.exe
CoreCLR Version: 6.0.222.6406
.NET Version: 6.0.2
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException: Unable to load DLL 'Microsoft.ui.xaml.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)
   at MauiApp5378.WinUI.Program.XamlCheckProcessRequirements()
   at MauiApp5378.WinUI.Program.Main(String[] args) in C:\Users\Administrator\source\repos\MauiApp5378\MauiApp5378\obj\Debug\net6.0-windows10.0.19041\win10-x64\Platforms\Windows\App.g.i.cs:line 28

@shimingsg shimingsg added the s/verified Verified / Reproducible Issue ready for Engineering Triage label Mar 18, 2022
@Redth
Copy link
Member

Redth commented Mar 21, 2022

Closing, tracking in #3166

@Redth Redth closed this as completed Mar 21, 2022
@mattleibow
Copy link
Member

This should be supported now. Just some apis in Blazor and essentials is having a few issues.

However, based on the exception I think that the windows runtime is not installed.

Please make sure to follow the steps in the issue or in the official docs linked there.

@JusterZhu
Copy link
Author

This should be supported now. Just some apis in Blazor and essentials is having a few issues.

However, based on the exception I think that the windows runtime is not installed.

Please make sure to follow the steps in the issue or in the official docs linked there.

Got it, I'll try it

@ghost ghost locked as resolved and limited conversation to collaborators Apr 21, 2022
@Eilon Eilon added t/desktop The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK) and removed legacy-area-desktop Windows / WinUI / Project Reunion & Mac Catalyst / macOS specifics (Menus & other Controls)) labels May 10, 2024
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 🪟 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working t/desktop The issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)
Projects
None yet
Development

No branches or pull requests

6 participants