TFS 2015 Publish Build Artifacts in one directory

后端 未结 3 1433
死守一世寂寞
死守一世寂寞 2020-12-19 01:50

We have just upgraded from TFS 2010 to TFS 2015 and I\'m recreating a XAML-Build-Definition in the \"vNext\" build/workflow-format.

In the

相关标签:
3条回答
  • 2020-12-19 02:12

    You can use the "Copy File" task and specify the Source Folder in it to achieve this feature. See this question for details: Copy one file in target directory on deploy from visual studio team services

    0 讨论(0)
  • 2020-12-19 02:15

    This is still possible, you can pass the following command line argument to your Visual Studio Build or MsBuild task:

    /p:OutputPath="$(Build.BinariesDirectory)"
    

    This will instruct the build task to redirect all output to the Binaries Directory, as you were accustomed to from the old XAML builds.

    or you can use my MsBuild Helper task from the Visual Studio Market Place to configure the Output Path, then add the $(MsBuildAdditionalArguments) variable to your MsBuild or Visual Studio Build's additional arguments input:

    MsBuild Helper Task

    Visual Studio Build / MsBuild Task

    0 讨论(0)
  • 2020-12-19 02:15

    Also please try giving this MSBuild argument

     /p:GenerateProjectSpecificOutputFolder=true /p:OutDirWasSpecified=true
     /p:OutputPath=$(Build.BinariesDirectory)
    
    0 讨论(0)
提交回复
热议问题