user2684161
user2684161

Reputation: 59

Can't run UWP release executable outside of Visual Studio 2017

I am using Visual Studio 2017 on Windows 10 with the official UWP sample code.

There is a UWP sample called basicinput that runs as a release build within the Visual Studio IDE without a problem.

My problem is:

when I attempt to run the release basicinput.exe executable by a mouse click (outside of the Visual Studio environment) I get an error saying that some DLLs names of the form vs*.dll can't be found.

I did a search for those .dlls and tried moving them to same folder as basicinput.exe, but then the application just hung.

What don't I understand?
What am I doing wrong?

Upvotes: 2

Views: 2761

Answers (1)

Peter Torr
Peter Torr

Reputation: 12019

As @Chuck-walbourn says, your application will appear in the Start Menu. If you want to deploy it to another computer (that doesn't have VS installed) you will need to create AppX packages using the menu item Project -> Store -> Create App Packages.... If you need more help with that. see the MSDN docs.

If you want to run your app from the command-line or from the Win+R dialog (with a simple name like foo.exe) you can create an appExecutionAlias for your application.

Upvotes: 5

Related Questions