question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nothing happened in opening built .exe file

See original GitHub issue

Describe the bug

I want to deploy my app but when build finished successfully it didn’t open and nothing appear like error message or something like that. below is build output:

Build started...
1>------ Build started: Project: xamltest, Configuration: Release x64 ------
Restored C:\Users\<user name>\Desktop\test\xamltest\xamltest.csproj (in 341 ms).
1>  xamltest -> C:\Users\<user name>\Desktop\test\xamltest\bin\x64\Release\xamltest.exe
1>  Processing application code
1>  Computing application closure and generating interop code
1>    Loading 81 modules...
1>    Generating code...
1>    Interop code generated.
1>  Compiling interop code
1>  Generating System.Reflection.DispatchProxy proxy code.
1>  Cleaning up unreferenced code
1>  Generating native code
1>  Generating fixups for native code
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Steps to reproduce the bug

Opening program in bin\x64\Release<name>.exe

Expected behavior

No response

Screenshots

No response

NuGet package version

No response

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Windows 10 (21H2): Build 19044

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
asklarcommented, May 27, 2022

is this really win32 or is it a uwp app? for a uwp app (or any packaged app), you can’t just run the exe, that won’t work, you need to start the app via e.g. the start menu, or programmatically through the activation manager API.

0reactions
asklarcommented, May 27, 2022

Either launch the app from the Start menu, or you can write a launcher exe or script.

  • If you have NodeJS installed, you can use npx launch-package [package name], e.g. npx launch-package microsoft.windowscalculator.
  • From the command line, you can start shell:AppsFolder\Microsoft.WindowsCalculator_8wekyb3d8bbwe!App. Note the !App prefix.
  • You can use a tool included in the SDK/App Certification kit: "C:\Program Files (x86)\Windows Kits\10\App Certification Kit\microsoft.windows.softwarelogo.appxlauncher.exe" Microsoft.WindowsCalculator_8wekyb3d8bbwe!App. Note the parameter you pass is the package name followed by the !app name like !App.
  • You can write your own launcher, see Launcher application.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 Does Nothing When I Click on .exe Files
Windows 10 Does Nothing When I Click on .exe Files · Open Command Prompt (run as admin) type cd\windows · Press "Windows key...
Read more >
Can't Open Exe Files in Windows 10/8/7 FIX - YouTube
Had this happen suddenly on Win 10. Can't open ANY . exe file, not even regedit. The system was fine one moment, and...
Read more >
python - PyInstaller .exe file does nothing
If this happens for you, open the command prompt and try to run the exe there by going to the appropriate path and...
Read more >
Nothing happens on opening exe through wine
I used q4wine to check the process running and can see that the processes are getting created fine. But no gui response. Please...
Read more >
Nothing happens when setup.exe is started | Endpoint ...
The problem occurs when the setup is launched, a setup.exe process will appear in the task manager, also in [c:\docs&settings\username\localsettings\temp] a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found