BUG: Creating Project Under Template Folder Excludes Files (267303)



The information in this article applies to:

  • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++, 32-bit Learning Edition 6.0

This article was previously published under Q267303

SYMPTOMS

If you create an AppWizard project in a folder that contains the name "template" as a subfolder, all files in the project folder are excluded from the build.

RESOLUTION

Do one of the following:
  • Do not use "template" as a folder name.
  • Manually include all files back into the project.
You can also include the excluded files in the build by clicking Settings on the Project menu. In the Project Settings dialog box, select all .cpp/.c/.odl/.idl files in the tree view on the left, and then clear the Exclude file from build check box in the General tab.

STATUS

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

MORE INFORMATION

Steps to Reproduce Behavior

  1. In the Visual C++ environment, click New on the File menu, and then click the Projects tab.
  2. Select a project type; for example, MFC AppWizard (EXE).
  3. Type a project name. Make sure that location points to a folder that contains "template" as a subfolder.
  4. Accept the defaults for the project.
You can verify this by clicking Settings on the Project menu. In the Project Settings dialog box, select the .cpp, .c, .idl, or .odl file, and then view the Exclude file from build check box in the General tab. It should be checked.

Modification Type:MajorLast Reviewed:11/18/2003
Keywords:kbBug kbnofix KB267303