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?)”
Image may be NSFW.
Clik here to view.
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”)
Image may be NSFW.
Clik here to view.
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.
Image may be NSFW.
Clik here to view.
So the solution is to change the Target framework to .NET Framework 4
Image may be NSFW.
Clik here to view.
When you change the target framework, it will ask for the confirmation, just click Yes to continue..!
Image may be NSFW.
Clik here to view.
That’s all, we are done with this error!
Happy TFS programming..! Thanks R./
Refrences:
2.http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/b42b69a9-b4be-46e5-a064-dbe97c9a0ad9
Image may be NSFW.
Clik here to view.

Clik here to view.
