Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I only started coding on visual studio community today and made a really simple in Visual Basic Universal Windows app. Just a button that exits the program again to test things out.
BUT I cant for the life of me figure out how to get it to run without visual studio.
I've tried both building in debug and release and neither of the exe files produced in the bin folder even try to run.
I'm very frustrated at this point and need some help

What I have tried:

I've tried both building in debug and release and neither of the exe files produced in the bin folder even try to run.
Posted
Updated 12-Apr-18 22:25pm
Comments
Jochen Arndt 11-Apr-18 7:44am    
Run them first within VS using F5 (with debugging) or Ctrl+F5 (without debugging). Do it first with the debug build and F5 so that you got notified about any problems.

When it then executes as expected, the created executables should do it too.
Member 13773783 11-Apr-18 14:18pm    
it passes the debugs but the executables in the bin/x84/debug folders don't launch. I've tried clicking on the ones in the obj folder and doing builds in x64 too. None of it works.
Jochen Arndt 11-Apr-18 14:36pm    
"it passes the debugs"
What does that mean?
Does it run when exeting it from VS (F5)?

When pressing F5 from within VS it will execute the same executable but under debug control.
Member 13773783 12-Apr-18 4:49am    
"passes the debugs" as in the executable runs as expected via VS with no found errors/bugs. The problem is that it wont launch externally without the aid of VS
Jochen Arndt 12-Apr-18 6:14am    
I will repeat and refine my question:
Does it execute when using F5 or a Start option from the Debug menu?

The options from the Build menu (F7) will build the application but not execute. When a build succeeds without errors it does not mean that the application is working. That is the reason for having a debugger which executes the application under it's control allowing to stop execution and inspect variables.

1 solution

It can't be executed because you are not building a desktop application but a Universal Windows Application.

These must be packaged first and then installed to be executed stand alone. See Packaging UWP apps - UWP app developer | Microsoft Docs[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900