BUG: Template Building Block Walkthrough Adds Incorrect Class File (316742)



The information in this article applies to:

  • Microsoft .NET Framework 1.0
  • Microsoft Windows .NET Framework 1.1

This article was previously published under Q316742

SYMPTOMS

If you follow the steps in the "Creating a Project Item Prototype" section of the "Creating a New Enterprise Template Building Block" walkthrough, the class file that you create in the steps is not the class file that is added to your project when you test this portion of the walkthrough. Instead, the default class file is added.

CAUSE

An important step was omitted from the documentation. When you create the custom class wizard file, you must specify the name of the custom class wizard in the file. Because the walkthrough instructs you to copy this file, the contents of the file still reference the default class wizard file.

RESOLUTION

To resolve this problem, open the Csharpmycustomclasswiz.vsz file that you created in step 1 of the walkthrough in any text editor, and then change the following line

Param="WIZARD_NAME = CSharpAddClassWiz"

to:

Param="WIZARD_NAME = CSharpMyCustomClassWiz"

STATUS

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

Modification Type:MinorLast Reviewed:5/28/2003
Keywords:kbDocs kbtemplate kbbug kbpending KB316742