Visual Studio Tools for Office generates the following visible files in Word 2003 and Word 2007 document projects:
Document Name.doc - Represents the Word document in the project. Contains the document design surface and the code file.
ThisDocument (.vb file for Visual Basic or .cs file for Visual C#) - A document that provides the design surface and the code file. For more information, see Document Host Item.
Note: |
|---|
You cannot add additional classes to the code file behind a document. You must add new files to your project to contain any classes you want to write.
|
Visual Studio Tools for Office also generates the following additional file when you build a Word 2007 workbook project:
Hidden Files
Visual Studio Tools for Office generates several hidden files. Do not modify these files manually; they are regenerated when changes are made to the project and they do not retain manual modifications.
Visual Studio Tools for Office generates the following hidden files:
ThisDocument.Designer.xml - A read-only declarative representation of the programmable objects in the document.
ThisDocument.Designer (.vb file or .cs file) - A read-only code file that provides helper implementations for objects in the document, including code to instantiate objects correctly.
Document Name.Designer.xml - A read-only declarative representation of programmable objects such as custom controls that are not part of Visual Studio Tools for Office by default. This file is generated when you add a custom control to the document.
Document Name.Designer (.vb file or .cs file) - A read-only code file that provides helper implementations for custom controls. This file is generated when you add a custom control to the document.