VSDevEnv Class

MSBuild Extension Pack

VSDevEnv Class MSBuild Extension Pack Help 4.0.12.0
This task provides a lightweight wrapper over Devenv.exe
Inheritance Hierarchy

SystemObject  Microsoft.Build.UtilitiesTask
    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

  NameDescription
Public methodVSDevEnv
Top
Properties

  NameDescription
Public propertyConfiguration
The Configuration to Build.
Public propertyFilePath
The Path to the solution or Project to build
Public propertyOutputFile
Specifies the File to log all output to. Defaults to the [Path.Dir]\Output\[Path.FileName].[Configuration].txt
Public propertyOutputFolder
Specifies the output folder to log to. Default is [Path.Dir]\Output\
Public propertyRebuild
Specifies whether Clean and then build the solution or project with the specified configuration. Default is false
Public propertyVersion
The version of Visual Studio to run, e.g. 8.0, 9.0, 10.0. Default is 9.0
Top
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

Reference