[UWP]应用包装 [英] [UWP]application packaging

查看:64
本文介绍了[UWP]应用包装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些桌面应用程序已通过各自的网站tdhcad.com和tdhgis.com分发。这些应用程序是用c ++开发的,依赖于cairo,wxwidgets和sqlite库。我现在希望在
微软商店发布这些应用程序。

i have some desktop apps that have been distributed through their respective web sites, tdhcad.com and tdhgis.com. these apps are developed in c++ with dependencies on cairo, wxwidgets and sqlite libraries. i now wish to publish these apps in the microsoft store.

最近,我已成功构建并运行应用程序在vs17  (之前,我使用的是gcc) 。但在试图打包应用程序时 我遇到了问题
我会很感激如何处理。

1。应用程序需要只读访问某些数据库文件。应用程序在可执行目录之外的特定目录中查找这些文件。如何将包含这些文件的目录包含在包中?

1. the apps need read only access to some database files. the apps look for these files in a particular directory off of the executable directory. how can such a directory containing these file be included in a package?

2。应用程序需要为用户数据存储创建一些数据库文件。默认情况下,这些文件是在可执行文件的目录中创建的,但可以通过将目录指定为命令行参数来覆盖此默认值。由于商店中的应用程序
无法写入可执行文件目录,我希望我的应用程序的商店版本能够使用命令行参数运行,默认情况下指定用户数据目录。理想情况下,我希望用户能够指定不同的目录,如果他们这样选择。
应用程序允许用户在不同的目录中创建任意数量的数据库文件。

2. the apps need to create some database files for user data storage. by default, these files are created in a directory off the executable, but this default can be overridden by specifying a directory as a command line argument. since apps in the store can't write to the executable directory, i would like for the store version of my apps to run with a command line argument specifying a user data directory by default. ideally, i would like for users to be able to specify a different directory if they so choose. the apps allow the user to create any number of database files in different directories.

3。理想情况下,TdhGIS和TdhCad可以访问公共数据库文件,因为这允许用户将TdhCad图形添加到TdhGIS显示中。

3. ideally TdhGIS and TdhCad would have access to a common database file as this allows the user to add TdhCad graphics to a TdhGIS display.

4。应用程序可以通过调用ShellExecute以pdf格式显示用户手册。如何通过商店应用程序显示pdf文件?

4. the apps can display the user's manual, in pdf form, by calling ShellExecute. how can a pdf file be displayed by a store app?

感谢您考虑这些事项。

更新:

我似乎通过在.wapproj文件中添加以下行来解决问题1:

i seemed to have solved issue 1 by adding the following lines to the .wapproj file:

  &NBSP; < Content Include =" TdhCad_Structure\TdhCad.sqlite" />

  &NBSP; < Content Include =" TdhCad_Structure\TdhCad_config.sqlite"对于问题2,/> b $ b

    <Content Include="TdhCad_Structure\TdhCad.sqlite" />
    <Content Include="TdhCad_Structure\TdhCad_config.sqlite" />

,这可以通过在以下命令中指定命令参数进行调试来完成:

for issue 2, this can be accomplished when debugging by specifying a command argument within:

配置属性|调试

如果只有该功能也适用于发行版本。

if only that feature was also available for the release version.

推荐答案

您好timhirrel,

Hi timhirrel,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

根据描述,这个问题是关于UWP开发的,我们的论坛是讨论VS IDE,我会帮你把这个帖子移到相应的论坛上以获得更好的支持,谢谢你的支持理解。

According the description, this issue is about the UWP development and our forum is to discuss the VS IDE, I will help you move this thread to the appropriate forum for a better support, thank you for your understanding.

祝你好运,

Sara


这篇关于[UWP]应用包装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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