Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone Windows通用应用程序“;“重新命名”:一个应用程序但多个软件包_Windows Phone_Customization_Win Universal App_Appxmanifest - Fatal编程技术网

Windows phone Windows通用应用程序“;“重新命名”:一个应用程序但多个软件包

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

我为Windows 8.1/Windows Phone 8.1开发了一个通用应用程序

默认情况下,此应用程序必须提交给主要客户,但其他客户必须能够通过提供自己的名称、自己的资产(图标、splashscreen等)和自己的UI颜色对其进行自定义。我在寻找一个解决方案,允许我这样做

因此,我想创建多个文件“appxmanifest”:

  • 默认的一个“Package.appxmanifest
  • 每个客户一个“Customer1.appxmanifest”、“Customer2.appxmanifest”、
=>但我不知道如何指定编译时使用的不同“appxmanifest”:可能吗?

此外,UI颜色在xaml文件中定义,该文件使用“合并词典”与“App.xaml”文件合并


=>有什么方法可以做到这一点吗?

您可以结合一个事件和一个事件来做到这一点

  • 为每个客户创建包含其名称的生成配置
  • 在项目目录中创建一个prebuild.bat文件,将正确客户的文件复制到项目目录中
    @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)”
  • 批处理文件将客户特定文件夹的全部内容复制到您的项目中,其中可以包括appxmanifest和xaml文件。
    这假设所有特定于客户的文件都位于Windows Phone项目的customers/[name of customer]文件夹中。

    您可以尝试在生成之前使用生成事件复制/替换清单文件。我正在研究如何使用预生成步骤应用此功能。但我不知道如何解决商店关联步骤:在构建商店之前,我需要将项目关联到商店上。我不认为有办法做到这一点。。。。