VSDevEnv Class | MSBuild Extension Pack Help 4.0.12.0 |
This task provides a lightweight wrapper over Devenv.exe
Inheritance Hierarchy
Microsoft.Build.UtilitiesToolTask
MSBuild.ExtensionPack.VisualStudioVSDevEnv
Namespace: MSBuild.ExtensionPack.VisualStudio
Assembly: MSBuild.ExtensionPack (in MSBuild.ExtensionPack.dll) Version: 4.0.0.0
The VSDevEnv type exposes the following members.
Constructors
Name | Description | |
---|---|---|
VSDevEnv |
Properties
Name | Description | |
---|---|---|
Configuration |
The Configuration to Build.
| |
FilePath |
The Path to the solution or Project to build
| |
OutputFile |
Specifies the File to log all output to. Defaults to the [Path.Dir]\Output\[Path.FileName].[Configuration].txt
| |
OutputFolder |
Specifies the output folder to log to. Default is [Path.Dir]\Output\
| |
Rebuild |
Specifies whether Clean and then build the solution or project with the specified configuration. Default is false
| |
Version |
The version of Visual Studio to run, e.g. 8.0, 9.0, 10.0. Default is 9.0
|
Examples
<Project ToolsVersion="4.0" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <TPath>$(MSBuildProjectDirectory)\..\MSBuild.ExtensionPack.tasks</TPath> <TPath Condition="Exists('$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks')">$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks</TPath> </PropertyGroup> <Import Project="$(TPath)"/> <Target Name="Default"> <MSBuild.ExtensionPack.VisualStudio.VSDevEnv FilePath="C:\a New Folder\WindowsFormsApplication1.sln" Configuration="Debug|Any CPU" Rebuild="true"> <Output TaskParameter="ExitCode" PropertyName="Exit" /> </MSBuild.ExtensionPack.VisualStudio.VSDevEnv> <Message Text="ExitCode: $(Exit)"/> </Target> </Project>
See Also