I defined VSTS build process till Publish Artifact steps. By default, VSTS agent creates 5 files in Publish Artifact location (c:\vsts-agent_work\1\a) including important build file i.e zip folder. When I checked zip folder, I found long path where my build files are located. folder path in zip -
\Content\C_C\vsts-agent\_work\1\s\ABCProject\obj\Release\Package\PackageTmp
I got to know that source of zip file is source directory after looking in _work folder-
C:\vsts-agent\_work\1\s\ABCProject\obj\Release\Package\PackageTmp
I wanted one folder (RDLCReports Folder) in C:\vsts-agent\_work\1\s\CCM2015MVC\obj\Release\Package\PackageTmp directory. I managed to create that folder using copy files task. I did this step before Publish Artifact step.
Problem is when Publish Artifact step is completed, I didn't get that folder in zip file.
below is snapshot of VSTS build process-
below is Publish Artifact location -
Please let me know how can add that folder in zip? and I also want to know which source path VSTS build has considered to make it as zip folder?
CopyToPublishDirectory
set totrue
in the MSBuild file. – Daniel Mann