首页 技术 正文
技术 2022年11月11日
0 收藏 563 点赞 4,360 浏览 3165 个字

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 that 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 be started when F5 is pressed, create their own solution configurations, or edit an existing configuration.

Note:

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

You must useDTE.SolutionBuilder.

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

Visual Studio Solution Configuration

Here is how you can implement the solution configurations supported by your project type:

  • Project   第一列

    Displays the names of projects found in the current solution.

  • Configuration  第二列

    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 in this solution configuration, and lists 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 selections are also displayed under the Configuration heading. Each of these selections launch dialog boxes that call methods of the IVsCfgProvider2 interface to edit the project’s configurations.

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

  • Platform   第三列

    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 selections are also displayed under the Platform heading. Each of these selections launch dialog boxes that callIVsCfgProvider2 methods to edit the project’s available platforms.

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

  • Build  第四列

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

  • Deploy  第五列

    Specifies whether or not the project will be deployed when the Start or Deploy commands are used with the selected solution build configuration. The check box for this field will be available if the project supports deploying by implementing the IVsDeployableProjectCfg 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 the standard toolbar to build and/or start that configuration.

特别注意Build列,如果不勾选的话,那么在生成解决方案的时候,就会忽略这个项目

测试:

1.新建一个winform的项目

2.打开配置管理器

3.将winform项目的Build取消勾选

4.清理解决方案

5.启动

Visual Studio Solution Configuration

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,489
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,904
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,737
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,490
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:8,128
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:5,291