You receive an error message when you try to create a new namespace that is named my in a Visual Basic 2005 project (906767)



The information in this article applies to:

  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Express Edition
  • Microsoft Visual Studio 2005 Team System Architect Edition
  • Microsoft Visual Studio 2005 Team System Developer Edition
  • Microsoft Visual Studio 2005 Team System Test Edition

SYMPTOMS

When you try to create a new namespace that is named my in a Microsoft Visual Basic 2005 project, you receive an error message that is similar to the following:
Casing of namespace name 'my' does not match casing of namespace name 'My' in file '17d14f5c-a337-4978-8281-53493378c1071.vb'

STATUS

This behavior is by design.

MORE INFORMATION

The My namespace is new in Visual Basic 2005. The My namespace is designed to simplify programming. Members of the My namespace have default configurations that support common programming scenarios. The APIs in the My namespace reduce the number of lines of code that are needed to complete common programming tasks. The My namespace resides under the root namespace of a Visual Basic 2005 project in an in-memory file. You can make the following modifications to the My namespace:
  • You can add members.
  • You can add classes.
  • You can extend event models.
  • You can reconfigure existing members.
  • You can redefine types.

REFERENCES

For more information about the My namespace, visit the following Microsoft Developer Network (MSDN) Web sites:

Modification Type:MajorLast Reviewed:10/12/2005
Keywords:kbdesign kbtshoot kbnofix KB906767 kbAudDeveloper