TFS gets assembly directory name inside CodeActivity

I am creating a custom TFS2013 activity using the CodeActivity base class.

Here is the overload I'm working with ...

    protected override void Execute(CodeActivityContext context)

Using CodeActivityContext, how to get the assembly directory (where the files will be deleted before they are created by MSBuild)? I need to modify the file in the assembly directory path before the MSBuild transition.

+4
source share
2 answers

You can pass a string of your activity

[RequiredArgument]
        public InArgument<string> DirectoryToSearch { get; set; }

In previous versions of TFS, you could simply pass SourcesDirectory or BinariesDirectory

In 2013, the default objects for SourcesDirectory and BinariesDirectory were deleted.

Microsoft.TeamFoundation.Build.Activities.Extensions.WellKnownEnvironmentVariables.

WellKnownEnvironmentVariables

+7

( TFS 2013).

: http://msdn.microsoft.com/en-ca/library/hh850448.aspx

, , TF_BUILD_SOURCESDIRECTORY

+1

All Articles