External dependencies are not displayed in Solution Explorer in Visual C++ .NET or in Visual C++ 2005 (820990)



The information in this article applies to:

  • Microsoft Visual C++ 2005 Express Edition
  • Microsoft Visual C++ .NET (2003)
  • Microsoft Visual C++ .NET (2002)

SYMPTOMS

In Visual C++ .NET or in Visual C++ 2005, the External Dependencies folder, which contains files that are not part of the project but that are referenced in the project, does not appear in Solution Explorer.

WORKAROUND

To work around this problem, use one of the following methods:
  • Method 1
    1. In the code, right-click the statement that refers to the external file.
    2. Click Open Document <path of referenced file>.
  • Method 2
    1. On the File menu, point to Open, and then click File.
    2. In the Open File dialog box, type the path of the external file that is referenced in your project, and then click Open.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Start Visual Studio .NET or Visual Studio 2005.
  2. Click File, point to New, and then click Project.
  3. Click Visual C++ Projects under Project Types, and then click Win32 Project under Templates.

    Note In Visual Studio 2005, click Visual C++ under Project Types, and then click Win32 Project under Templates.
  4. In the default .cpp file, add the following code after the #include "stdafx.h" preprocessor statement:
    #include "<system directory>\system32\perfci.h"
  5. Build the application. Notice that the External Dependencies folder does not appear in Solution Explorer for the perfci.h C or C++ header file.
To see the perfci.hfile in the External Dependencies folder in Visual C++ 6.0, click the FileView tab of the Workspace window after you build the project.

In Visual C++ 6.0, when a file is referenced that was not part of the project, but was referenced in a file in the project, the file that is referenced is added to the External Dependencies folder under the FileView tab of the Workspace window. This helps to view the files that are not part of the project.

Modification Type:MajorLast Reviewed:1/12/2006
Keywords:kbtshoot kbide kbprb KB820990 kbAudDeveloper