How to put files in the TFS Build upload folder

I am new to creating TFS. I have a built structure that works like continuous integration. It creates a folder for deletion, but there is nothing in it.

What is the best practice for moving material in a delta folder? I saw the binaries folder, do I need to copy something there or modify the TFSbuild.proj file somehow to copy the files I want to the delete folder?

+5
source share
2 answers

It seemed to me that it works, adding this towards the end of my TFSBuild.proj

<Target Name="PackageBinaries">
    <ItemGroup>
        <FilesToDrop Include="$(SolutionRoot)\MyProduct\Installer\Bin\**\*.msi"/>
    </ItemGroup>
    <Message Text="FilesToDrop=@(FilesToDrop)"/>
    <Copy SourceFiles="@(FilesToDrop)"
      DestinationFiles="@(FilesToDrop ->'$(BinariesRoot)\%(RecursiveDir)%(Filename)%(Extension)')"/>
</Target>

msi Binaries, tfs, . , Binaries , .

PackageBinaries - , .


TFS, , !

+1

, ( ) drop?

, , , , , TFSBuild.proj.

, AfterDropBuild. , , TFSBuild.proj:

<CreateItem Include="$(SolutionRoot)\Source\RandomFilesInWorkspaceFolder\**\*.*">
  <Output TaskParameter="Include" ItemName="RandomFiles" />
</CreateItem>
<Copy SourceFiles="@(RandomFiles)" DestinationFiles="@(RandomFiles->'$(DropLocation)\RandomDestinationSubFolder\%(RecursiveDir)%(Filename)%(Extension)')" />
+3

All Articles