Posts Tagged .Net 4.0
“The type or namespace name ‘Workflow’ does not exist in the namespace ‘Microsoft.TeamFoundation.Build’ (are you missing an assembly reference?)” -TFS 2010
Posted by Rajanihanth in .Net, TFS, TFS 2010 on October 8, 2012
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
The type or namespace name ‘SharePoint’ does not exist in the namespace ‘Microsoft’ (are you missing an assembly reference?) – SharePoint 2010 Client Object Model dlls
Posted by Rajanihanth in .Net, Client Object model, SharePoint 2010 on July 13, 2012
When I started using the Client Object model (Client OM) in SharePoint 2010, I have got this simple error and I just want to share with you in this blog. Following was my develpment environment.
- Windows 7, 64 bit
- Console Application Visual Studio 2010
- Added Client Object Model references (Microsoft.SharePoint.Client.dll & Microsoft.SharePoint.Client.Runtime.dll) to the solution
After setting up all the above, I was trying to add the client reference to the code ‘using Microsoft.SharePoint.Client;‘and then I have got the following error and warnings 🙂
The text format of error is:
"The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)"
It’s an obvious error message and the reason of this error is:
SharePoint 2010 does not support .Net 4.0 in default and Visual Studio 2010 default framework is .Net 4.0.
Here are the simple steps to fix this:
Step 1: Right click on the project –> Properties
Step 2: Change the Target framework –> .Net Framework 3.5
Step 3: Warning message will be popping up, click Yes.
That’s all. Happy Coding..!
Please Note: If you use Windows Application then you will be getting an other error message! 😦 To solve this issue just click here.