Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1808666
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:17:24+00:00 2026-05-17T06:17:24+00:00

Possible Duplicate: TFS 2010 Custom Build Activity TF215097 error I’m trying to create a

  • 0

Possible Duplicate:
TFS 2010 Custom Build Activity TF215097 error

I’m trying to create a CustomActivity to run after each successful build.

I’ve followed the exact steps of several tutorials

  1. http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2010/03/08/lessons-learnt-building-a-custom-activity-to-run-typemock-isolator-in-vs2010-team-build.aspx

  2. http://www.ewaldhofman.nl/post/2010/04/29/Customize-Team-Build-2010-e28093-Part-4-Create-your-own-activity.aspx

  3. http://www.dotnetcurry.com/ShowArticle.aspx?ID=522&AspxAutoDetectCookieSupport=1

And all have lead me to the same result – The build fails after several seconds with this error:

TF215097: An error occurred while initializing a build for build definition 
\MyCompany\Dev - Client: Cannot create unknown type '{clr-
namespace:BuildTasks.Activities;assembly=BuildTasks}TFSBuildLocalizer'.

I came down to a point where I have removed all custom references I had in the CodeActivity project and commented out all of the code.

I have added the output dll to the TFS, and I have the following post build script in the project’s properties:

"$(DevEnvDir)\TF.exe" checkout "$/MyCompany/Development/Djenne/Dev/Tools/BuildProcess/Output/$(TargetFileName)"
copy /Y "$(TargetPath)" "C:\tfs2010\MyCompany\Dev\Tools\BuildProcess\Output\$(TargetFileName)"
"$(DevEnvDir)\TF.exe" checkin "$/MyCompany/Development/Djenne/Dev/Tools/BuildProcess/Output/$(TargetFileName)"

I’ve made sure that the namespace in the workflow xaml is correct for the custom CodeActivity.

I have no idea what else can I try,

Please help!

Thanks,

EDIT: I’m adding more descriptions about what I’ve already tried:

The CodeActivity class already have the attribute:

[BuildActivity(HostEnvironmentOption.All)]

The CodeActivity class is contained inside an Activity Library project.
Here is the ProjectTypeGuids tag inside the csproj file:

<ProjectTypeGuids>{32f31d43-81cc-4c15-9de6-3fc5453562b6};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

In the custom workflow xaml I’ve added my CodeActivity right after “Get Impacted Tests, Index Sources and Publish Symbols”

I currently don’e have any InArgument nor OutArgument in my CodeActivity.

These are the references in my CodeActivity project:

  • Microsoft.CSharp
  • Microsoft.TeamFoundation.Build.Client
  • System
  • System.Activities
  • System.Core
  • System.Data
  • System.Data.DataSetExtensions
  • System.Xaml
  • System.Xml
  • System.Xml.Linq
  • WindowsBase

In “Build Controller Properties” I have set the “Version control path to custom assemblies” with the same TFS path as my post build script:
$/MyCompany/Development/Djenne/DEV/Tools/BuildProcess/Output

In my Build Definition I’ve set “Build process template” with my custom workflow xaml.

Thank you guys for the answers, do you have any more thoughts?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:17:25+00:00Added an answer on May 17, 2026 at 6:17 am

    Ok, I got this thing figured out.

    Here’s what worked for me:

    I’ve installed my dll to the GAC in the build server, ran the build and suddenly it worked!

    gacutil.exe /i buildtasks
    

    Afterwards, I’ve uninstalled the dll from the GAC, and it keeps working even still.

    gacutil.exe /u buildtasks
    

    Another thing, my project had several references which I also had to checkin in the same directory as the CodeActivity dll itself.
    So to do that I’ve changed my project’s post build script:

    cd "C:\tfs2010\Djenne\Dev\Tools\BuildProcess\Output\"
    "$(DevEnvDir)\TF.exe" checkout "$/TradeNetworks/Development/Djenne/Dev/Tools/BuildProcess/Output/*.*"
    xcopy "$(TargetDir)*.*" "C:\tfs2010\Djenne\Dev\Tools\BuildProcess\Output\" /E /R /C /Y
    

    The only thing left to do now is to figure out how to debug this damn thing.
    But that’s an issue for another question.

    Thanks to everybody who helped,

    Hope this will help anyone in the future as well.

    EDIT:

    One more thing I’ve noticed is every time I edit my custom workflow, it regenerates the xaml and removes the “;assembly=BuildTasks” suffix from the custom CodeActivity namespace (xmlns).
    So after every change I need to edit the xaml to fix it over and over again, otherwise the same error reoccurres.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a Chrome browser extension, that should enhance the way the
I know its probably possible, but is it practical and doable to try and
I know its probably possible, but is it practical and doable to try and
I am trying to load a html page through UIWebview.I need to disable all
I'm trying to write test harness for part of my Android mapping application. I
I have several USB mass storage flash drives connected to a Ubuntu Linux computer
I am writing a query to fetch results for all the values in a
My question is about memory use and objects in actionscript 2. If I have
This is beyond both making sense and my control. That being said here is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.