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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:05:47+00:00 2026-05-13T14:05:47+00:00

I have Visual Studio 2008 SP1, two C++/CLI projects, lets say proj1 and proj2.

  • 0

I have Visual Studio 2008 SP1, two C++/CLI projects, lets say proj1 and proj2.
proj2 is dependent on proj1, but in a weird way (see below).
In Project Dependencies I specify that proj2 depends on proj1.
Also proj2 references include proj1.
Then I want proj1 to be a friend to proj2,
so, as MSDN page on “Friend Assemblies” says, I write somewhere in proj2 this code:

#using "proj1.dll" as_friend.

Compiling says that proj1.dll already referenced, and that I should remove project reference from proj2 project settings (thus removing /FU flag).

Here comes the bug(?):
If I remove proj1 reference from proj2, but still specify in solution Project Dependencies that proj2 depends on proj1,
everything compiles ok in VS2008. But MSBUILD parses project references, creates new temporary project for the proj2,
ADDS /FU:proj1.dll and BUILD FAILS!

Question 1: is there a way to disable this MSBuild behavior?

Then, if I remove dependency in Project Dependencies, MSBuild builds fine, but Visual Studio tries to compile proj1 and proj2 in parallel, and fails,
because proj2 is much smaller and compiles first… Setting max parallel builds option in Project and Solutions/Build and Run helps,
but I have to do it on every developer machine, I can’t save this setting in the solution, this makes build slower etc…

Question 2: is there a way to make “Project Dependencies” a conditional option? I want it on for VS2008 and of for MSBuild…

  • 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-13T14:05:47+00:00Added an answer on May 13, 2026 at 2:05 pm

    As the OP has already found out, this is actually a bug. A bug was filed by the OP and acknowledged by Microsoft. It appears to affect VS2005, VS2008 and VS2010 (targeting VS2008).

    The workaround that I used was a dummy intermediate project to “buffer” the references between the 2 dependent projects.

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

Sidebar

Ask A Question

Stats

  • Questions 347k
  • Answers 347k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You should try JCE - http://www.joomlacontenteditor.net. It's a WYSIWYG Editor,… May 14, 2026 at 6:20 am
  • Editorial Team
    Editorial Team added an answer You are using the wrong server. You will need to… May 14, 2026 at 6:20 am
  • Editorial Team
    Editorial Team added an answer Do you mean like: function setPhrase(phrase) { var url =… May 14, 2026 at 6:20 am

Related Questions

I'm new to managed C++. I have two managed C++ projects in a single
I have a weird problem when running an application that uses GNOME's libxml2 under
My solution is primarily C#, but I have one C++ project that creates a
Vista SP1 Visual Studio 2008 SP1 .NET 3.5 SP1 C# I have a winforms
Platform : Visual Studio 2008 SP1 with Resharper 4.1, .NET 3.5 I have a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.