A warning symbol appears in Solution Explorer next to a reference when you rebuild a solution that contains two projects in Visual Studio 2005

Article translations Article translations
Article ID: 919826 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario. You open a solution in Microsoft Visual Studio 2005. The solution contains two projects that are named Project A and Project B. Project A contains a reference to a file that Project B generates during the build process. The project build order for the solution builds Project A before Project B. You rebuild the solution by clicking Rebuild Solution on the Build menu. In this scenario, a warning symbol appears in Solution Explorer. The warning symbol appears under Project A next to the reference to the file that Project B generates.

Note The warning symbol is a yellow triangle that contains a black exclamation point (!).

CAUSE

This behavior may occur when a project contains a reference to a file that another project in the solution generates. If the referencing project is built before the referenced project is built, Visual Studio 2005 does not know if the referenced file is available.

WORKAROUND

To work around this behavior, use one of the following methods.

Method 1

After the build process is finished, click the warning symbol that appears next to the reference. When you do this, Visual Studio 2005 updates the reference.

Method 2

Change the project build order for the solution. To do this, follow these steps:
  1. Start Visual Studio 2005.
  2. On the File menu, point to Open, and then click Project/Solution.
  3. Locate the solution that you want to open, and then click Open.
  4. On the Project menu, click Project Build Order.
  5. Click the Dependencies tab.
  6. Click the project dependencies, and then click OK.

Properties

Article ID: 919826 - Last Review: June 29, 2006 - Revision: 1.0
APPLIES TO
  • Microsoft Visual Studio 2005 Team System Architect Edition
  • Microsoft Visual Studio 2005 Team System Developer Edition
  • Microsoft Visual Studio 2005 Team System Test Edition
  • Microsoft Visual Studio 2005 Team Foundation
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Express Edition
Keywords: 
kbtshoot kbprb KB919826

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com