Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Namespace Considerations in Office Solutions

Note Required applications

The features in this topic are available only if you have the required applications installed.

For more information, see Features Available by Product Combination.

  • One of these development environments:

    VSTO 2005

    -or-

    Visual Studio Team System

  • Microsoft Office 2003

You cannot change the root namespace (in Visual Basic) or the default namespace (in C#) after you create a project. The namespace will match the name of the project. When you create a project, use the name you want for your project namespace.

Host Item Namespace in C# Projects

Host items in C# projects have their own namespaces. By default, the host item namespace is based on the name of the project.

Use the Namespace for Host Item property to change the namespace of the host item. For more information, see Properties in Visual Studio Tools for Office Projects.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft