Visual Studio Solution Configuration

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.

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.

时间: 2024-07-30 10:05:00

Visual Studio Solution Configuration的相关文章

清理Visual Studio解决方案临时文件:Clean Visual Studio Solution Temporary File Build20160418

复制保存到任意文件名.bat,放置在Visual Studio Solution目录下. 当Visual Studio Solution目录过于庞大或打算拷贝移动Visual Studio Solution时,双击打开bat文件即可. 本bat文件仅删除Visual Studio每次运行自动创建的临时缓存文件,不会删除源文件,请放心使用. 1 ::请勿轻易修改此文件,以避免不可预知的错误 By [email protected] 2 3 @echo off 4 color 0A 5 title

What does the number on the visual studio solution icon represent?

he numbers correspond to the internal version numbers of various editions of Visual Studio http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Version_history Visual Studio 6.0 (1998)Visual Studio .NET (2002) = version 7Visual Studio .NET 2003 = ver

Building Python 2.7.10 with Visual Studio 2010 or 2015 - Google Chrome

您的浏览器(Chrome 33) 需要更新.该浏览器有诸多安全漏洞,无法显示本网站的所有功能.?了解如何更新浏览器 × p-nand-q.com C++? Python? Programming? Languages? Humor? Tools? Misc? Building Python 2.7.10 with Visual Studio 2010 or 2015 7th revision, August 7, 2015.A document history can be found at t

微软Dynamics 2015 开发 之 安装visual studio 2012

此安装也简单的,直接在微软官网下载安装文件,2G不到,解压安装即可以. 在新建项目中可以看到有5个类型可以新建. New Visual studio solution template for Dynamics CRM 2013 Dynamics CRM 2013 Plug-in Library Dynamics CRM 2013 Workflow Library Dynamics CRM 2013 Package Dynamics CRM 2013  XAML workflow Library

Visual Studio 解决方案版本从v12-->v14

Visual Studio 解决方案版本从v12-->v14 方法很简单.使用文本编辑器打开v12.sln文件.内容开头如下: Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2013 VisualStudioVersion = 12.0.31101.0 MinimumVisualStudioVersion = 10.0.40219.1 ... 修改VisualStudioVersion =

Visual Studio的工程结构解析

近来由于需要分析VS的工程结构,大家都知道以.sln结尾的就是Visual Studio的解决方案文件 废话不多说,首先查看下一个简单的sln文件结构 Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApplication1", &qu

Visual Studio 2010

1.解决Visual Studio空格变成很多点的3种方法. 1.编辑->高级->查看空白 2.Ctrl + E 然后按S 3.Ctrl + R + W 2.怎样在vs 2010中打开vs 2012的项目. 我们可以修改两个工程文件来把VS2012的工程文件移植到VS2010中去. 首先当然是修改解决方案文件(.sln文件). 使用记事本打开,把里面的 Microsoft Visual Studio Solution File, Format Version 12.00        # Vi

[转]List of Visual Studio Project Type GUIDs

本文转自:http://www.codeproject.com/Reference/720512/List-of-Visual-Studio-Project-Type-GUIDs There isn't an easy way to change the type of a project in Visual Studio project once it is created; for example changing a C# Class Library into a Portable Cla

手动修改Visual Studio 版本互转工具

首先把sln文件用记事本打开,在文件开头把Microsoft Visual Studio Solution File, Format Version 12.00# Visual Studio 2012改为:Microsoft Visual Studio Solution File, Format Version 11.00# Visual Studio 2010关闭保存,然后再用记事本打开源码目录下的.csproj文件,7.        将<TargetFrameworkVersion>v4