DCSIMG
Visual Studio 2010 - The type or namespace name 'MyClassLibrary' could not be found - Adlai Maschiach

Adlai Maschiach

" You have to show in order to be seen "

News

Favorite Links

news

CardSpace

Books

Other InfoCards Proj

Virtual Earth

WSS / Sharepoint

SOA , Biztalk & ESB

CLR / .NET

Visual Studio 2010 - The type or namespace name 'MyClassLibrary' could not be found

Visual Studio 2010 - The type or namespace name 'MyClassLibrary' could not be found

I have run across this message in the Beta Edition of Visual Studio 2010 , and I dismissed it as a Beta feature . But now with the release version , for me , that message was a bit out of place .

It seems that the solution , as far as I’m concern , is very simple , change the Target to “.NET Framework 4” and everything is going back to normal.

VS2010 

If you’ll look closely , you’d notice that the default is set to “.NET Framework 4 Client Profile”

The .NET Framework 4 Client Profile is a subset of the .NET Framework 4 that is optimized for client applications. It provides functionality for most client applications, including Windows Presentation Foundation (WPF), Windows Forms, Windows Communication Foundation (WCF), and ClickOnce features. This enables faster deployment and a smaller install package for applications that target the .NET Framework 4 Client Profile.

If you are targeting the .NET Framework 4 Client Profile, you cannot reference an assembly that is not in the .NET Framework 4 Client Profile. Instead you must target the .NET Framework 4. For more information, see Troubleshooting .NET Framework Targeting Errors.

Comments

Jon Upchurch said:

Thanks for the tip, this was driving me nuts!

# September 17, 2010 7:09 PM

roy z said:

Thanks,

Seems like it solved my problem :)

# November 21, 2010 3:59 PM

Chris said:

THANK YOU!!!

# March 23, 2011 1:48 AM

Jonathan Yong said:

Thank you so much! My head was about to explode with much confusion and frustration!

# April 5, 2011 1:08 PM

Nhi said:

you're the man!

# June 27, 2011 3:36 PM

Sergio Salazar said:

Thank you, gracias, from monterrey!!

# September 11, 2011 4:44 AM

Learner said:

Awesome man,thanks :)

# September 13, 2011 3:27 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: