4imble
4imble

Reputation: 14416

Setting App Icon depending on build configuration for WinRT

I have built a WinRT app.

When i run it using Debug, i would like it to have a different icon for when i run it in release.

Can this be done?

Upvotes: 2

Views: 357

Answers (2)

4imble
4imble

Reputation: 14416

This also looks like a viable option, and could prove more powerful, not only will i be able to change the images, but i will also be able to manipulate the package name (for side by side loading) and also anything else in the manifest (small things like background colour).

Example: How to Change Manifest Information by Using a Post-Build Event The follo

Upvotes: 1

Jim O'Neil
Jim O'Neil

Reputation: 23764

One option is a pre-build step. Let's say you set up your assets directory like:

Assets
    Debug
        logo.png  // debug version of logo
    Release
        logo.png  // release version of logo
    logo.png      // location of logo provided in app manifest

in a pre-build step (via the Properties of the project) you could then use the following command:

 copy "$(ProjectDir)Assets\$(ConfigurationName)\logo.png"  "$(ProjectDir)Assets" /Y

Upvotes: 4

Related Questions