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 6791091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:48:15+00:00 2026-05-26T17:48:15+00:00

Attempting to build a Visual Studio 2010 solution with 132 projects which do not

  • 0

Attempting to build a Visual Studio 2010 solution with 132 projects which do not use any file references (only project references). When I build the entire solution, I get many build errors like this:

The type or namespace name 'xxxx' does not exist in the namespace '<namespace name>' (are you missing an assembly reference?)

The target framework version for ALL projects in the solution is v3.5.

Hence I started building projects one by one based on the Project Build Order. And on one of the projects (say project A), I get the below info in the Build Output (note the framework version). This project A builds successfully.
When I build the next project, say project B, which references project A through a project reference (not file reference), then it throws the above build error. Hence it seems project B is the culprit.

 Compile complete -- 0 errors, 54 warnings
  <ProjectName> -> <filepath>\<filename>.dll
  Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.1
  Copyright (c) Microsoft Corporation.  All rights reserved.

Details of project B

Solution configuration is Debug.

  • In the References tree of project B, the properties of the project A reference shows

1) “Runtime Version” as v2.0.50727.
2) “Copy local” as True.
3) “Strong Name” as True.
4) “Version” as 1.0.xxxx.xx (as specified in the AssemblyInfo.cs of project A)
5) There is no “Specific Version” key (because it is a project reference)

  • the AssemblyInfo.cs of project B has the following:

1) [assembly: ComVisible(false)]
2) [assembly:Guid(“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”)]
3) [assembly:AssemblyVersion(“1.0.xxxx.xx”)]
4) [assembly:AssemblyFileVersion(“9.0.xxxx.xx”)]

  • the project B properties has the following:

1) “Target Framework” as “.NET Framework 3.5”
2) “Output Type” as “Class Library”
3) “Treat warnings as errors” as “None”

My Question(s)

Now, the target framework specified in the properties of ALL my projects is .NET Framework 3.5.

How does the build engine use a GAC Utility of v4.0 when my target framework is v3.5?

Searched all files to see if .NET 4.0 is configured somewhere but could not find it.
This seems to be potentially the root cause of the above issue. Or am I missing something else? I believe I have covered the usual suspects.

Also why does the Runtime Version of project A reference in project B say v2.0.50727 when the target framework version for both projects is v3.5?

PS:
I tried removing the project reference and adding its file reference instead, still gives the same build error. (This usually used to work before when it was a long name issue but its not in this case).

UPDATE 1:

The build output for the above build error is:

Compile complete -- 13 errors, 0 warnings
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): 
warning MSB3258: The primary reference "<project A reference name>" could not be resolved
because it has an indirect dependency on the .NET Framework assembly 
"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxx" 
which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework.

UPDATE 2:

The Post-build event command-line for project A has the following which explains why the build uses the GAC Utility of v4.0! Now I need to figure how to get the v3.5 Gacutil in there.
My second question still stands though.

cd "$(ProjectDir)"
cd ..\..\..\Bin
gacutil.exe /if "$(TargetPath)"
  • 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-26T17:48:15+00:00Added an answer on May 26, 2026 at 5:48 pm

    To answer your second question:

    .Net 3.0 and .Net 3.5 are simply new DLLs that run on the existing CLR 2.0.

    There are no runtime versions between 2.0 and 4.0.

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

Sidebar

Related Questions

I am currently attempting to use Visual Studio 2010 'Publish' and MSDeploy functionality to
In Visual Studio 2010, I'm building a Silverlight C# application. I'm attempting to use
I'm attempting to make an x64 build of a project with Visual Studio 2005.
I'm using Visual Studio 2010 and C# to build WinForms apps and class libraries.
I am attempting to build Chromium for windows (using Visual Studio 2008 SP1) and
I need to build a visual c++ solution (.dsp VC++ 7.1) which was written
I'm attempting to bring over an old project to Visual Studio 2010 but I'm
We have a Visual Studio 2008 solution with 58 projects. One project targets the
I am getting the following error when attempting to build my project in Visual
I am attempting to build a simple method that creates an XML file from

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.