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

3 במאי 2010

17 תגובות

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.

הוסף תגובה
facebook linkedin twitter email

כתיבת תגובה

האימייל לא יוצג באתר. שדות החובה מסומנים *

17 תגובות

  1. Jon Upchurch17 בספטמבר 2010 ב 19:09

    Thanks for the tip, this was driving me nuts!

    הגב
  2. roy z21 בנובמבר 2010 ב 15:59

    Thanks,
    Seems like it solved my problem 🙂

    הגב
  3. Chris23 במרץ 2011 ב 1:48

    THANK YOU!!!

    הגב
  4. Jonathan Yong5 באפריל 2011 ב 13:08

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

    הגב
  5. Nhi27 ביוני 2011 ב 15:36

    you're the man!

    הגב
  6. Sergio Salazar11 בספטמבר 2011 ב 4:44

    Thank you, gracias, from monterrey!!

    הגב
  7. Learner13 בספטמבר 2011 ב 15:27

    Awesome man,thanks 🙂

    הגב
  8. Mia24 בפברואר 2012 ב 18:03

    thanks dude, you saved my life, i was going to kill myself, you're the best

    הגב
  9. Darshil6 במרץ 2012 ב 10:07

    But where is the main menu? what's the title of main menu to perform this task

    הגב
  10. venkat 1 ביוני 2012 ב 14:26

    how can change namespace in the middle of development( do not want go each place and replace new name).

    הגב
  11. Sorrell26 באוגוסט 2012 ב 13:42

    Marvelous, what a blog it is! This weblog presents valuable facts to us, keep it up.

    הגב
  12. Molina24 בספטמבר 2012 ב 9:44

    Hey There. I discovered your blog the use of msn.

    This is a very smartly written article. I'll make sure to bookmark it and come back to read more of your helpful info. Thanks for the post. I will certainly comeback.

    הגב
  13. Jeffery1 באוקטובר 2012 ב 22:04

    In essence its a great summer type blockbuster with huge special effects,
    great action, aliens, and actually non stop thrills throughout.

    הגב
  14. Mcfadden1 באוקטובר 2012 ב 22:09

    I can’t actually help but admire your blog, your blog is
    so adorable and nice ,

    הגב
  15. Juarez6 באוקטובר 2012 ב 4:29

    It's remarkable in support of me to have a website, which is helpful in support of my experience. thanks admin

    הגב
  16. Kauffman7 באוקטובר 2012 ב 1:08

    Having read this I thought it was rather informative.
    I appreciate you taking the time and energy to put this content together.
    I once again find myself spending way too much time both reading and commenting.

    But so what, it was still worth it!

    הגב