c# - 无法在 Visual Studio 之外启动 UWP 可执行文件

标签 c# windows uwp visual-studio-2017 exe

问题:当我尝试启动时,我找到的 .exe 文件(MyProject\bin\x86\Release 和 MyProject\obj\x86\Release)什么都不做他们。我的 .exe 位置是否错误,或者我是否遗漏了一个步骤?

目的:我正在尝试创建桌面快捷方式来启动该程序。

相关信息:

  • 这是一个 C# UWP Visual Studio 2017 项目

  • 应用从 Visual Studio IDE 正确启动。

  • 应用程序从显然是​​由 Visual Studio 创建的 Windows 开始菜单图标正确启动。 (链接到哪里?)

  • (在线搜索只得到与启动 Visual Studio 本身相关的结果,这就是我在这里问的原因。)

最佳答案

You can't run Universal Windows Platform (UWP) executables directly.你需要 make an APPX-formatted package并安装它,然后该应用程序将出现在您的“开始”菜单中。

关于c# - 无法在 Visual Studio 之外启动 UWP 可执行文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57208038/

相关文章:

c# - AJAX仅适用于页面刷新

c# - 如何自动调整 RDLC 报告中的列宽

c# - 在 Windows 10 上获取已连接的蓝牙设备列表

工具箱中缺少 UWP Treeview

c# - RestSharp - 如何获取数字 http 响应代码?

C# 泛型 : there is no way to constrain a type to have a static method?

c# - 将 LuisDialog 方法 (LuisIntents) 拆分为多个文件或类别

windows - 警告 : templates not found/share/git-core/templates | fatal: Unable to find remote helper for 'https'

python - 捕获和处理网络摄像头提要并将其作为 "virtual webcam"公开-在Python中,在Windows上

c# - 向后按钮跳过收藏夹中的第一个项目