Skip to content

Code Quality: Add a solution configuration for each build of the app #16680

@Lamparter

Description

@Lamparter

Description

Here's an interesting idea: what if instead of using the Configure-AppxManifest.ps1 script, each "branch" or release channel of the app (Release, Preview, Dev) were literally a solution configuration? For example, instead of choosing Debug|x64, you'd choose Dev|x64. Resources such as the app icon and name would dynamically change rather than needing to be updated using a script.

Concerned code

  • The solution file
  • Areas where there are differences per branch
    • Different features
    • Different app icons

Gains

  • eg. A better readability.
  • eg. Uncoupling concepts X and Y.
  • eg. Clarifying the responsibility of class C.

Requirements

  • Add #if compiler blocks to hide features that are restricted to a channel
  • Using MSBuild property files, the associated app icons could also be dynamically changed

Comments

This would be a good thing to do when a new solution is created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions