My VB6 Task dont assign the correct OutDir metadata

Dec 3, 2008 at 6:54 PM
Hi

I have a script of task that have this code

<

 

ItemGroup>

 

<

 

ProjectsToBuild Include="c:\AplicacionExeSola\AplicacionExeSola.vbp">

 

<

 

outdir>$(DropLocation)\$(BuildNumber)</outdir>

 

The out dir takes DropLocation ok but never take my BuildNumber property. If I use in the same script this task of message:

<

 

Target Name="BuildNumberOverrideTarget">

 

<

 

BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" Name="StartIncrement"

 

 

 

Message="Destino &quot;$(DropLocation)\$(BuildNumber)&quot;" Status="Succeeded" />

 

</

 

Target>

 

This message takes ok DropLocation and BuildNumber

Any body can help me?

Help would be apreciated.

Thanks


PD the complete script it is:

<

 

Project ToolsVersion="3.5" 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>

 

 

-->

 

<

 

TPath>$(MSBuildExtensionsPath)\MSBuild.ExtensionPack.tasks</TPath>

 

<

 

TPath Condition="Exists('$(MSBuildExtensionsPath)\ExtensionPack\MSBuild.ExtensionPack.tasks')">$(MSBuildExtensionsPath)\ExtensionPack\MSBuild.ExtensionPack.tasks</TPath>

 

</

 

PropertyGroup>

 

<

 

Import Project="$(TPath)"/>

 

<

 

Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets"/>

 

<

 

Target Name="BuildNumberOverrideTarget">

 

<

 

BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" Name="StartIncrement"

 

 

 

Message="Destino &quot;$(DropLocation)\$(BuildNumber)&quot;" Status="Succeeded" />

 

</

 

Target>

 

<

 

ItemGroup>

 

<

 

ProjectsToBuild Include="c:\AplicacionExeSola\AplicacionExeSola.vbp">

 

<

 

outdir>$(DropLocation)\$(BuildNumber)</outdir>

 

<!--

 

$(BuildProjectFolderPath)/../../AplicacionExeSola/AplicacionExeSola.vbp"> <OutDir>$(DropLocation)\$(BuildNumber)\</OutDir>-->

 

<!--

 

<Properties>

 

OutDir=$(DropLocation)\$(BuildNumber) tambien se puede expresar <outdir></outdir> o dentro de tag PorjectsToBuild como atributo

</Properties>

 

-->

 

</

 

ProjectsToBuild>

 

</

 

ItemGroup>

 

<

 

Target Name="Default">

 

<!--

 

Build a collection of VB6 projects -->

 

<

 

MSBuild.ExtensionPack.VisualStudio.VB6 VB6Path="C:\Archivos de programa\Microsoft Visual Studio\VB98\VB6.EXE" TaskAction="Build" Projects="@(ProjectsToBuild)"/>

 

<!--

 

<BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" Name="StartIncrement"

 

Message="proyectos '@(ProjectsToBuild)' &quot;$(SolutionRoot)&quot;" Status="Succeeded" />

 

 

-->

 

</

 

Target>

 

<

 

Target Name="EndToEndIteration"

 

 

 

Condition=" '$(IsDesktopBuild)'!='true' "

 

 

 

DependsOnTargets="$(EndToEndIterationDependsOn)" >

 

<

 

CallTarget Targets="Default"/>

 

<

 

SetBuildProperties TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" Status="Succeeded" />

 

<

 

OnError ExecuteTargets="OnError"/>

 

</

 

Target>

 

<

 

Target Name="OnError">

 

<

 

SetBuildProperties TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" Status="Failed" />

 

</

 

Target>

 

</

 

Project>

 








Coordinator
Dec 4, 2008 at 9:26 AM
Answered here: http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/c067f812-806c-4022-9893-4c27acc2c01a