Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 924697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:23:57+00:00 2026-05-15T19:23:57+00:00

I have a class library project which uses a namespace (e.g., Cosmos.Creator.Util). I then

  • 0

I have a class library project which uses a namespace (e.g., “Cosmos.Creator.Util”). I then create a solution and windows forms application to test the library. From the windows form application, I add a reference to the library. So now I have two projects open in visual studio, a class library and a windows forms project. The forms project references the library.

When I edit my form’s code, code autocompletion works correctly for the namespace that I use in the library. E.g., if I type “using Cosmos.” I get autocomplete options like “Creator”. But now if I build my solution, all of the “Cosmos” are red-underlined with the compile error: “The type or namespace name “Cosmos” could not be found (are you missing a using directive or an assembly reference?)”.

For the purposes of the form application test, I placed my library code into a folder CosmosFormExample\Cosmos. When I check the reference from the form application, the reference is to CosmosFormExample\Cosmos\bin\Debug\Cosmos.dll, so that looks okay. I looked at the GUID referenced in the solution file and it matches the GUID of the project file Cosmos.csproj.

What has happened? How has the build caused my forms application to forget about the Cosmos namespace, despite the fact that it is still referencing the library project? Thanks much in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:23:59+00:00Added an answer on May 15, 2026 at 7:23 pm

    Are you using VS2010 & .NET 4? If so you’re probably using .NET 4 Client Profile instead of full fledged .NET 4. Go to project properties and check your Target Framework.

    for more info: http://msdn.microsoft.com/en-us/library/cc656912.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an solution in VS 2008 which contains two class library projects and
I have a Windows Service project, A, with a dependency on a class library
I have a C# class library and a startup project (a console app). The
We have a class library where we keep a lot of the stuff that
I have a class library with some extension methods written in C# and an
I have a class library with all my database logic. My DAL/BLL. I have
I have a .NET class library containing a class with a method that performs
I have created a class library in VB .NET. Some code in the library
The current class library I am working on will have a base class (Field)
I have a C# (2008/.NET 3.5) class library assembly that supports WPF (based on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.