“The type or namespace name ‘Workflow’ does not exist in the namespace ‘Microsoft.TeamFoundation.Build’ (are you missing an assembly reference?)” -TFS 2010

When I try to Deserialize Process Parameters to extract the BuildSettings, I have got the following error message:

“The type or namespace name ‘Workflow’ does not exist in the namespace ‘Microsoft.TeamFoundation.Build’ (are you missing an assembly reference?)”

But I have already added the dll to the project! (You can see the Dlls located at “C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies”)

After spending few minutes on the web I have found the solution from this post! The problem of this error is that, Visual Studio 2010 sets the .NET Framework Version to “.NET Framework 4 Client Profile” in default.

So the solution is to change the Target framework to .NET Framework 4

When you change the target framework, it will ask for the confirmation, just click Yes to continue..!

That’s all, we are done with this error!

Happy TFS programming..! Thanks R./

Refrences:

1. http://blogs.msdn.com/b/dustin_andrews/archive/2010/08/27/error-could-not-find-type-microsoft-teamfoundation-build-workflow-activities-in-assembly-microsoft-teamfoundation-build-workflow.aspx

2.http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/b42b69a9-b4be-46e5-a064-dbe97c9a0ad9

Advertisement

, , , , , , , ,

  1. #1 by computer repair signage on December 20, 2012 - 8:53 pm

    hey there and thank you for your info – I have certainly picked up
    anything new from right here. I did however expertise some technical points using
    this website, since I experienced to reload the website a lot of times previous to
    I could get it to load correctly. I had been wondering if your hosting is
    OK? Not that I am complaining, but slow loading instances times will often affect your placement
    in google and can damage your high-quality score if ads and marketing with Adwords.
    Anyway I’m adding this RSS to my email and could look out for a lot more of your respective exciting content. Make sure you update this again soon.

  2. #2 by Takashi Koyama on November 24, 2015 - 9:17 am

    This did not work on our project. The .NET framework was already set to 4 and kept getting the same error. I was told that this project was built in VS 2010 and we are using 2012.

  3. #3 by Rajanihanth on November 24, 2015 - 9:43 am

    Hi Takashi, if it is VS 2012 and then choose .Net Framework 4.5 and try it again. Thx

  4. #4 by Takashi Koyama on December 14, 2015 - 3:46 pm

    Thank you for the reply. I changed it .Net FWK 4.5 but still the same. 😦

Please leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: