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

  • Home
  • SEARCH
  • 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 4023420
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:35:47+00:00 2026-05-20T10:35:47+00:00

I have a solution in Visual Studio 2010 containing 6 projects (1 web application,

  • 0

I have a solution in Visual Studio 2010 containing 6 projects (1 web application, 4 c# class libraries, 1 c# console application).

The console application is my test harness and use this to test external web services, output from methods from within my other libraries and general experimentation. This test console application has only one dependency on another project dependency, one of the C# libraries.

The referenced C# library is pretty simple:

namespace GowallaAPI
{
    public class Gowalla
    {
       private static readonly ILog log = LogManager.GetLogger(typeof(Gowalla));
       public SpotsInRadius GetGowallaSpotsInRadius(decimal lat, decimal lon, int radius) {
           //snip
       }
       //other methods removed for brevity//
    }
}

I have added to my console application a project reference:

enter image description here

And I’ve also right-clicked on References and selected Add Reference…

you can see the Gowalla reference already exists in this example picture

Then, I’ve gone to my console application and added;

using Gowalla;

Then hit build. I get this:

The type or namespace name ‘Gowalla’
could not be found (are you missing a
using directive or an assembly
reference?)

I am completely baffled. I have:

  1. Remove the dependencies completely (and then rebuilt with Gowalla references removed), and added them again.
  2. I have removed the dependencies completely (like #1) and then added them as assemblies only (Add Reference…).
  3. Checked that the target framework for both console application and class library is .NET 4.0 – they are.
  4. Checked that all necessary items within the Gowalla class library are marked as Compile in the Build property.
  5. Jiggled the build order of the project so that I am at least building the console application AFTER the library is built.
  6. Done some shouting and swearing.
  7. Given up and then returned.
  8. Moved the Gowalla C# library out to its own project entirely and then referenced the assembly (like in 2).
  9. Playing the having a constructor in Gowalla and not:

    public Gowalla()
    {

    }
    … and nothing has worked!

Can anyone see something obvious? Am I being utterly stupid? I have been on this for hours and I wonder quietly if this is a classic ‘wood for the trees’ moment…

Help appreciated.

EDIT 1: This is the Gowalla.dll exposed from Reflector:

enter image description here

ANSWER: After @gov’s helpful suggestion to remove the GowallaAPI library and try and add something else I did that and started adding in the old code from the GowallaAPI library. Everything worked until I added:

private static readonly ILog log = LogManager.GetLogger(typeof(Gowalla));

log4net for some utterly bizarre reason kept throwing the build. Alas, after removing the line (the reference to log4net remains), the project built and worked perfectly thereafter. Thank you to @gov for setting me on the right path! 😀

  • 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-20T10:35:48+00:00Added an answer on May 20, 2026 at 10:35 am

    I suggested him various things in the comments looks like one of them worked out.

    @dooburt just forget about GowallaAPI and create a separate project like i say , sample.common and have a public class called utilities or so add that project here , just check a new project of type library and see whats the problem

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

Sidebar

Related Questions

I have a Visual Studio 2010 MVC 3 web solution containing a number of
I have a visual studio 2005 solution which has a web application and a
Do you have one solution with the web application project, class libraries, database project
We have a Visual Studio 2010 solution that contains several C# projects in accordance
We have a Visual Studio 2010 solution that contains several C# projects in accordance
We have a ASP.Net web application running in Visual Studio 2010 that is targeting
I have several projects in a solution in visual studio 2010. This is the
I have a solution in Visual Studio 2008 which has multiple projects. One of
I have a solution of mixed VB.NET and C++ projects. When using Visual Studio
I have a Visual Studio Solution. Currently, it is an empty solution (=no projects)

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.