8 out of 17 rated this helpful - Rate this topic

Configuring a Computer to Develop Office Solutions

You must install the following prerequisites before you can use the Microsoft Office developer tools in Visual Studio 2013:

  • Visual Studio

  • .NET Framework

  • Microsoft Office

For most development tasks, you must also install and register the primary interop assemblies (PIAs) for Microsoft Office in the global assembly cache.

For detailed installation steps, see How to: Configure a Computer to Develop Office Solutions.

The Office developer tools are included only with the following editions of Visual Studio:

  • Visual Studio Professional

  • Visual Studio Premium

  • Visual Studio Ultimate

The Office developer tools are an optional component of Visual Studio. These tools are installed by default when you install one of the Visual Studio editions in the previous list. If you customize the Visual Studio installation by specifying which features to install, specify Microsoft Office Developer Tools during setup to install the tools.

The Office developer tools include the Visual Studio Tools for Office runtime and features that are integrated into Visual Studio itself, such as project templates and designers. For more information about the Visual Studio Tools for Office runtime, see Visual Studio Tools for Office Runtime Overview.

You can use the Office developer tools in Visual Studio 2013 to create solutions that target the .NET Framework 4 or the .NET Framework 4.5.

You can use Visual Studio 2013 to create solutions for Office 2013 or Office 2010. You must have one of the following versions of Office installed locally on the development computer:

  • Any suite edition of Office 2013 or Office 2010, including Office Professional Plus for Office 365.

  • Any of the following standalone applications:

    • Excel 2013

    • InfoPath 2013

    • Outlook 2013

    • PowerPoint 2013

    • Project 2013

    • Visio 2013

    • Word 2013

    • Excel 2010

    • InfoPath 2010

    • Outlook 2010

    • PowerPoint 2010

    • Project 2010

    • Visio 2010

    • Word 2010

Visual Basic for Applications (VBA) must be installed as part of Office.

Note Note

You can't use Visual Studio 2013 to create an Office solution that targets Office 2010 if you're running a version of Office 2010 that was delivered by means of Click-to-Run.

Visual Studio 2013 does not support creating Office solutions when more than one version of Microsoft Office (or different versions of individual Office applications, such as Excel 2007 and Excel 2010) are installed side-by-side on the development computer. To create Office solutions by using the Office developer tools in Visual Studio 2013, install only Office 2010 or Microsoft Office 2013 on the development computer.

The Office PIAs must be installed and registered in the global assembly cache to perform the following development tasks:

  • To create a document-level project.

  • To run or debug any Office project in which you have changed the Embed Interop Types property of all the PIA references in your project to False

You can create and build application-level projects without having the PIAs installed in the global assembly cache. However, if you do this, you cannot run or debug the projects in the scenarios listed above.

When you install Office on the development computer, the PIAs are installed and registered in the global assembly cache if the .NET Framework 2.0 or later is installed beforehand.

If you install Office on a development computer that does not have the .NET Framework installed yet, or if you modify Office setup to not install the PIAs, you must install them separately. For more information, see How to: Install Office Primary Interop Assemblies.

Note Note

Visual Studio 2013 installs private copies of the PIAs outside of the global assembly cache. When you create an Office project, the project references these copies of the PIAs. However, the PIAs must also be installed and registered in the global assembly cache to perform the development tasks listed above. For more information, see Office Primary Interop Assemblies.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.