无法在 Visual Studio 2017 之外运行 UWP 发布可执行文件 [英] Can't run UWP release executable outside of Visual Studio 2017

查看:33
本文介绍了无法在 Visual Studio 2017 之外运行 UWP 发布可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 10 上使用 Visual Studio 2017 和官方 UWP 示例代码.

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

有一个名为 basicinput 的 UWP 示例,它在 Visual Studio IDE 中作为发布版本运行,没有任何问题.

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

我的问题是:

当我尝试通过鼠标单击(在 Visual Studio 环境之外)运行发行版 basicinput.exe 可执行文件时,我收到一条错误消息,指出某些形式为 vs*.dll 的 DLL 名称可以不会被发现.

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.

我搜索了那些 .dll 并尝试将它们移动到与 basicinput.exe 相同的文件夹,但随后应用程序挂起.

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?

推荐答案

正如@Chuck-walbourn 所说,您的应用程序将出现在开始"菜单中.如果要将其部署到另一台计算机(未安装 VS),则需要使用菜单项 Project -> Store -> <代码>创建应用程序包....如果您需要更多帮助.请参阅MSDN 文档.

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.

如果您想从命令行或从 Win+R 对话框(使用简单的名称,如 foo.exe)运行您的应用程序,您可以创建一个appExecutionAlias 用于您的应用程序.

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.

这篇关于无法在 Visual Studio 2017 之外运行 UWP 发布可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆