Visual Studio Solution Configuration

Source: Internet
Author: User

Https://msdn.microsoft.com/en-us/library/bb166577.aspx

Solution Configurations Store Solution-level properties.

They direct the behavior of the Start (F5) key and Buildcommands.

By default, these commands build and start the Debug configuration.

Both commands execute in the context of a solution configuration.

This means, the user can expect F5 to start and build whatever the active solution is configured through the settings.

The environment is designed to optimize for solutions rather than projects when it comes to building and running.

The standard Visual Studio toolbar contains a Start button and a solution configuration Drop-down to the right of The Start button.

This list allows users to choose the configuration to being started when F5 is pressed, create their own solution Configurati ONS, or edit an existing configuration.

Note:

There is no extensibility interfaces to create or edit the solution configurations.

You must useDTE. Solutionbuilder.

However, there is extensibility APIs for managing the solution build. For more information, see IVsSolutionBuildManager2.

Here's how can implement the solution configurations supported by your project type:

  • Project   first column

    Displays the names of projects found in the current solution.

  • Configuration   second column

    To provide the list of configurations supported by your project type and displayed in The property pages, Implement ivscfgprovider2.

    The configuration column displays the name of the project configuration to build with this solution configuration, and Li STS all of the project configurations when you click the arrow button. The environment calls Thegetcfgnames method to fill out this list. If The getcfgproviderproperty method indicates that the project supports configuration editing, New or Edit Sele Ctions is also displayed under the Configuration heading. Each of these selections launch dialog boxes The call methods of the  IVsCfgProvider2  INTERFAC E to edit the project ' s configurations.

    If a project does not support configurations, the Configuration column displays None and is disabled.

  • Platform   third column

    Displays the Platform the selected project configuration builds for, and lists all of the Available platforms for the project when you click the arrow button. The environment calls The getplatformnames method to fill out this list. If The getcfgproviderproperty method indicates that the project supports platform editing, New or Edit selection S is also displayed under the Platform heading. Each of these selections launch dialog boxes This call IVsCfgProvider2  methods to edit the project ' s Available platforms.

    If a project does not support platforms, the Platform column for this project displays None and is disabled.

  • Build Fourth Column

    Specifies whether or not the project was built by the current solution configuration. Unselected projects is not built when the Solution-level build commands is invoked despite any project dependencies they Contain. Projects not selected to be built is still included in debugging, running, packaging, and deployment of the solution.

  • Deploy Column Fifth

    Specifies whether or not the project would be deployed when the Start or Deploy commands is used with the selected Solutio n build configuration. The check box for this field is available if the project supports deploying by implementing the IVSDEPLOYABLEPROJECTC FG interface on its IVsProjectCfg2 object.

Once A new solution configuration is added, the user can select it from the Solution configuration Drop-down list box on t He standard toolbar to build and/or start that configuration.

Visual Studio Solution Configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.