VC6 Class | MSBuild Extension Pack Help 4.0.12.0 |
Valid TaskActions are:
Build (Required: Projects Optional: MSDEVPath, StopOnError)
Remote Execution Support: NA
Inheritance Hierarchy
MSBuild.ExtensionPackBaseTask
MSBuild.ExtensionPack.VisualStudioVC6
Namespace: MSBuild.ExtensionPack.VisualStudio
Assembly: MSBuild.ExtensionPack (in MSBuild.ExtensionPack.dll) Version: 4.0.0.0
The VC6 type exposes the following members.
Constructors
Name | Description | |
---|---|---|
VC6 |
Properties
Name | Description | |
---|---|---|
MSDEVPath |
Sets the MSDEV path. Default is [Program Files]\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXE
| |
Projects |
Sets the .dsp/.dsw projects to build.
| |
StopOnError |
Set to true to stop processing when a project in the Projects collection fails to compile. Default is false.
|
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)"/> <ItemGroup> <!-- This uses $(Platform) and $(Configuration) for all projects in the .dsp file --> <ProjectsToBuild Include="C:\MyVC6Project.dsp"/> <!-- Uses supplied platform and configuration for all projects in the .dsp file --> <ProjectsToBuild Include="C:\MyVC6Project2.dsp"> <Platform>Win32</Platform> <Configuration>Debug</Configuration> </ProjectsToBuild> <!-- Uses $(Platform) and $(Configuration) for just the specified projects in the .dsw file --> <ProjectsToBuild Include="C:\MyVC6Project3.dsw"> <Projects>Project1;Project2</Projects> </ProjectsToBuild> </ItemGroup> <Target Name="Default"> <!-- Build a collection of VC6 projects --> <MSBuild.ExtensionPack.VisualStudio.VC6 TaskAction="Build" Projects="@(ProjectsToBuild)"/> </Target> </Project>
See Also