Change settings in the Appxmanifest for differnt solution configuration (UWP project)

≡放荡痞女 提交于 2019-12-24 00:49:04

问题


I have JavaScript hosted UWP project with package.appxmanifest. Manifest has setting StartPage, I would like to change it based on testing/production build (they should point to the different urls).

Looks that xml transformation doesn't work for such project types. Does anyone know how to solve this issue?


回答1:


The way I've got around this in projects is to create the additional build configurations for the solution using the Configuration Manager (right-click solution -> Configuration Manager) and then make a copy of the AppxManifest, manipulate the values you want for the various build configurations and give the files names that relate to them, i.e Package.Test.xml.

You'll then want to setup your Build Events for the app project (right-click project -> Properties) to copy the file during a Pre-build like this:



来源:https://stackoverflow.com/questions/40693954/change-settings-in-the-appxmanifest-for-differnt-solution-configuration-uwp-pro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!