UWP / Visual Studio: How to make different builds variants?

You can just use conditionals like this:

<AppxManifest Include="Manifest.Debug.xml"
              Condition="'$(Configuration)'=='Debug'">
  <SubType>Designer</SubType>
</AppxManifest>
<AppxManifest Include="Package.appxmanifest"
              Condition="'$(Configuration)'=='Release'">
  <SubType>Designer</SubType>
</AppxManifest>

Double click on Package.appxmanifest file in your project.

Select Packaging label and enter different Package names for different cases.

Store each of variants.

Your PC gonna think these are different UWP apps.


I've found a solution using this guide: http://grogansoft.com/blog/?p=1087

I basically ended up having an appxmanifest (renamed to appxmanifest2 since you can only have one appxmanifest per project) per build configuration and then in the build events "pre-build event command line" I'm copying the one I need into the project root.

For the constants I'm using pre-processor conditional compilation symbols.


Comments

  1. Reuben

    • 2019/3/23

    Only the projects that are specified in the active solution configuration will be built. If multiple target platforms are selected in 

  2. Conti

    • 2016/7/14

    I need to have three different build variants (flavors) of my UWP app that can be installed parallel: one for production, one for testing and one for development. They obviously need to share the same code base but have different constants like backend URLs and API keys.

  3. Brandon

    • 2019/1/28

    Learn how you can build most types of projects with multiple, or even all, of their build configurations with one IDE action.

  4. Rylan

    • 2021/3/26

    I need to have two different build variants (flavors) of my UWP app that can be installed parallel both on the same device: one for production and one for testing. They need to share the same code base but have different constants like backend URLs and API keys.

  5. Brodie

    • 2015/6/15

    Visual Studio Version, Target a specific Visual Studio release if you have multiple versions installed. Build and Run on, Select the target device or 

  6. Brown

    • 2015/11/10

    Visual Studio can also attach to any running UWP app process by selecting Debug, and then Attach to Process. Attaching to a running process doesn’t require the original Visual Studio project, but loading the process's symbols will help significantly when debugging a process that you don't have the original code for.

  7. Kyler

    • 2017/5/14

    Visual Studio Version, Target a specific Visual Studio release if you have multiple versions installed. Build and Run on, Select the target device or 

  8. Robinson

    • 2018/8/2

    In this article, we are going to see how to create our first UWP app using visual studio. As per the consumers facility we have different types of windows system where the dimensions of the screen may vary as per the requirement. Developing app at different screen resolution will be simple and feasible to create application using Universal windows platform. App development in UWP can be done

  9. Jared

    • 2019/1/9

    Windows UWP; Build a release app; Distribution. Windows Visual Studio 2019 (not to be confused with Visual Studio Code). For Win32 you need the “Desktop 

  10. Anderson

    • 2016/5/12

    Let us now implement the UWP by following these steps. First, launch Visual Studio 2015. Click on the File menu and select New → Project; a New Project dialog will show up. You can see the different types of templates on the left pane of the dialog box. In the left pane, you can see the tree view, now select Universal template from Templates

  11. Donovan

    • 2018/10/30

    The Vuforia Engine Supported Versions page lists the operating systems and When you build a UWP app in Unity, a Visual Studio project is generated and 

  12. Connor

    • 2015/4/23

    The MixedReality-WebRTC libraries for Windows platforms (Desktop and UWP) are The MSVC v141 - VS 2017 C++ x64/x86 build tools toolchain from Visual 

  13. Santos

    • 2019/7/5

    UWP apps do not run on earlier Windows versions. Apps that are capable of implementing this platform are natively developed using Visual Studio 2015, 

Comments are closed.

Recent Posts