Share via


How to: Add a New Platform to a Device Project

The following procedures show how to add a platform to an existing device project.

This is an alternative to creating a multiplatform project from inception using the wizard. Using the wizard is a superior way. For more information see How to: Using the Wizard to Create a Multiplatform Device Project.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To add a new platform using the Configuration Manager

  1. On the Build menu of your device project, click Configuration Manager

    The Configuration Manager Dialog Box appears.

  2. Under Active Solution Platform drop-down list, select New to add a new configuration.

    The New Solution Platform dialog box appears.

  3. Under Name, select or type in the platform you wish to add, such as Smartphone 2003. .

  4. From the Copy settings from drop-down list, you can select an existing platform to copy the settings for your new platform, or create a new platform with empty settings. In the latter case, you have to set the project settings manually.

  5. Make sure the Create new project platforms check box is selected.

    If not, you will have to manage and add the configuration files, any platform dependent code that the wizard can generate for you, and other project files such as resources.

  6. Click OK.

    The New Solution Platform dialog box generates the project files for the newly added platforms, such as source, header, and resource files.

  7. Click OK to close the Configuration Manager dialog box.

    Note

    Having created a device project, you can always add more platforms, after the initial creation. However, adding a new platform to the project after the initial creation does not add the additional dependent run-time DLLs to the Additional Files configuration property. For example, if your application dynamically links to MFC, you will need to add the following DLLs to the Additional Files property for the newly added platform: Mfc80u.dll, Atl80.dll, Msvcr80.dll. This example assumes a retail configuration.

See Also

Tasks

How to: Change the Default Device (Native Projects)

Using Resources on Multiple Platforms

Other Resources

How to Maintain a Single Binary for Pocket PC and Smartphone