如何在WinRT应用中打包资源文件
在WinRT应用程序-Windows商店应用中部署“资源”文件的最佳方法是什么?我正在使用一个应用程序,该应用程序将使用许多HTML和CSS模板文件来生成多个报告。
我将如何包装这些文件(可能在文件夹中)与Windows Store应用一起部署?
理想情况下,我想用CSS文件和图像指定可以在安装过程中复制到应用程序目录的文件夹,以便我可以在随后的报告中引用它们,但是在商店应用程序中,即使可以部署这些问题,我也可以对于图片文件夹或其他一些可访问的位置,
我在Visual Studio 2019中尝试了资产组,但这仅允许包含单个文件,我将不得不编程提取它们,这似乎很gludgy。
(主要是表面平板电脑)的一些其他详细信息
- 使用设备上的winrt/cpp
- UWP应用程序,我想要一个文件夹,appReports/css,appReports/img,appReports/fonts,
- 我希望我希望在图片文件夹中创建这些子文件夹,以便用户创建这些子文件夹 报告
- 我可以轻松找到我将使用MSIX作为部署策略的
- 如果要将模板文件捆绑到资产树中, - 我需要执行以下步骤 一个。在图片中创建小组CSS,IMG和字体中的子目录 b。将模板文件复制到相应的文件夹,
我认为可能会有一种更简单的方法来完成该应用程序外部的方式,因为这实际上只是一次设置情况
What is the best approach to deploy "Resource" files within a WinRT app - Windows Store app? I am working on an app that will use a number of html and css template files to generate multiple reports.
How would I go about packaging these files (potentially within folders) to be deployed with the windows store app?
Ideally I would like to specify folders with the CSS files and Images that can be copied to an app directory during installation so I can reference them in the subsequent reports, but with permission issues in store apps I would be OK even if these could be deployed to the pictures folder or some other accessible location
I tried the assets group in visual studio 2019 but that only allows individual files to be included and I would have to programmatically extract them which seems pretty kludgy.
some additional details
- UWP app using winRT/CPP
- On the device (primarily surface tablet) I would like a folder hierarchy of appReports/css, appReports/img, appReports/fonts
- I would prefer to create these subfolders within the Pictures folder so that the users can easily find the reports
- I would be using MSIX as the deployment strategy
- If I was to bundle the template files into assets tree - I would need to do the following steps
a. create the subdirectories css, img and fonts within Pictures from the app
b. copy the template files to the respective folders
My thought was that there might be an easier way to do this external to the app since this is really only a one time setup situation
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论