Windows phone Windows通用应用程序“;“重新命名”:一个应用程序但多个软件包
我为Windows 8.1/Windows Phone 8.1开发了一个通用应用程序 默认情况下,此应用程序必须提交给主要客户,但其他客户必须能够通过提供自己的名称、自己的资产(图标、splashscreen等)和自己的UI颜色对其进行自定义。我在寻找一个解决方案,允许我这样做 因此,我想创建多个文件“appxmanifest”:Windows phone Windows通用应用程序“;“重新命名”:一个应用程序但多个软件包,windows-phone,customization,win-universal-app,appxmanifest,Windows Phone,Customization,Win Universal App,Appxmanifest,我为Windows 8.1/Windows Phone 8.1开发了一个通用应用程序 默认情况下,此应用程序必须提交给主要客户,但其他客户必须能够通过提供自己的名称、自己的资产(图标、splashscreen等)和自己的UI颜色对其进行自定义。我在寻找一个解决方案,允许我这样做 因此,我想创建多个文件“appxmanifest”: 默认的一个“Package.appxmanifest” 每个客户一个“Customer1.appxmanifest”、“Customer2.appxmanifest
- 默认的一个“Package.appxmanifest”
- 每个客户一个“Customer1.appxmanifest”、“Customer2.appxmanifest”、
=>有什么方法可以做到这一点吗?您可以结合一个事件和一个事件来做到这一点
@setlocal enableextensions enabledelayedexpansion
@回音
设置buildconfig=%1
set projectdir=%~2
如果%buildconfig%==“Customer1”转到CopyCustomerFile
如果%buildconfig%==“Customer2”转到CopyCustomerFile
转到终点
:CopyCustomerFiles
xcopy“%projectdir%\customers\%buildconfig%”“%projectdir%”/I/Y/R/S
转到终点
:结束
端部
“$(ProjectDir)prebuild.bat”“$(ConfigurationName)”“$(ProjectDir)”
这假设所有特定于客户的文件都位于Windows Phone项目的customers/[name of customer]文件夹中。您可以尝试在生成之前使用生成事件复制/替换清单文件。我正在研究如何使用预生成步骤应用此功能。但我不知道如何解决商店关联步骤:在构建商店之前,我需要将项目关联到商店上。我不认为有办法做到这一点。。。。