So I'm kind of new to the scripting and XMl but I'm trying to get my head arround it.
I'm working on a project where I have to replicate certain commands from scripts to XML using Tasks and Targets and then run it with a MSBuild in TFS 2015.
I have been having trouble trying to replicate one that "calls" an .exe file and gives another file as a parameter to convert it, then it outputs to a specific dir. We are using environment variables so it goes something like this:
"%CONVERTER_TOOL%" "%FILE_TO_CONVERT%" "OUTPUT_DIR"
this is how the command is written in the Generate.cmd file.
I did this on a .csproj, the variables listed are already set by a config file I call first when queing the MSBuild.
<ItemGroup>
<Converter Include="$(CONVERTER_TOOL)"/>
</ItemGroup>
<ItemGroup>
<FileToConvert Converte Include="$(FILE_TO_CONVERT)"/>
</ItemGroup>
<ItemGroup>
<OutDir Include="$(OUTPUT_DIR)"/>
</ItemGroup>
<Target Name="">
<Exec Command="@(Converter.Identity) @(FileToConvert.Identity)
@(OutDir)"/>
</Target>
But it keeps giving me this error and I can't solved it.
Error:
@(FileToConvert.Identity) was unexpected at this time.
I think I'm build the Command in the wrong way. :/
Anyone have any clue about this?
Thanks in advance. :)