
- #Microsoft visual studio tools 2010 for office install
- #Microsoft visual studio tools 2010 for office code
This embedded type information, rather than the type information in the referenced assemblies, are used by the solution at run time. If you want to enable this feature, set the Embed Interop Types property of any of the following assembly references in your project to True:Īfter you make this change, type information for all of the runtime types used by the project is embedded into the solution assembly when you build the project. If your solution does not use the Document interface as an embedded type, then your solution will no longer work with the next version of the runtime.īy default, the type equivalence feature is not enabled when you create an Office project that targets the. For example, if your solution uses the Document interface as an embedded type and the next version of the runtime adds members to the Document interface, your solution will still work with the next version of the runtime. This feature enables Office solutions and the Visual Studio Tools for Office runtime to version independently of each other. NET Framework 4 or later are based on interfaces, you can use the type equivalence feature in both Visual C# and Visual Basic in Visual Studio to embed type information from the Visual Studio Tools for Office runtime into your solution. NET Framework 4 or laterīecause the object model of the Office extensions for the. Enable type equivalence and embedded types in projects that target the. For more information about Globals.Factory, see Global access to objects in Office projects. For example, to get an object that implements the SmartTag interface, use the method. To create objects that implement these interfaces, use methods provided by the Globals.Factory object in your project. The only interfaces you can implement directly have names that begin with the letter I, such as ISmartTagExtension.Īll interfaces that do not begin with the letter I are implemented internally by the Visual Studio 2010 Tools for Office runtime, and these interfaces might change in future releases. NET Framework 4 or later are not intended to be implemented by user code. Most of the interfaces in the Office extensions for the. Interfaces in the Office extensions for the. For more information, see Migrate Office solutions to the.

#Microsoft visual studio tools 2010 for office code
However, certain features require different code when you target different versions of the. In most cases, the code you write in Office solutions is the same whether your solution targets the. NET Framework 4 or later, the Worksheet and Document types are interfaces instead of classes. In contrast, most of the types that you use in the Office extensions for the. These are the same classes that were included in previous versions of the Visual Studio Tools for Office runtime. Most of the types that you use in the Office extensions for the. Design differences in the Office extensions For more information about the assemblies in the Office extensions, see Assemblies in the Visual Studio Tools for Office runtime. When you create an Office project, Visual Studio automatically adds references to the assemblies that are used for the project type and the target. These extensions consist of assemblies that your solutions use to automate and extend Office applications. NET Framework use the appropriate extensions for that version. Solutions that target each version of the. The Visual Studio 2010 Tools for Office runtime includes Office extensions for the. Understand the Office extensions for the. For more information, see Visual Studio Tools for Office runtime installation scenarios.
#Microsoft visual studio tools 2010 for office install
Depending on the configuration of the computer, different runtime components are installed when you install the runtime. The runtime can be installed in several different ways.

For more information, see Understand the Office solution loader. This component is a set of unmanaged DLLs that Office applications use to load the runtime and your solutions.

For more information, see Understand the Office extensions for the. These components are managed assemblies that provide the communication layer between your solution and the Microsoft Office application. The Visual Studio 2010 Tools for Office runtime consists of two main components: For more information, see How to: Install the Visual Studio Tools for Office runtime redistributable. To run solutions that are created by using the Microsoft Office developer tools in Visual Studio, the Visual Studio 2010 Tools for Office runtime must be installed on end-user computers.
