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:
2.http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/b42b69a9-b4be-46e5-a064-dbe97c9a0ad9