Book Image

Visual Studio 2013 and .NET 4.5 Expert Cookbook

Book Image

Visual Studio 2013 and .NET 4.5 Expert Cookbook

Overview of this book

Table of Contents (14 chapters)
Visual Studio 2013 and .NET 4.5 Expert Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating Visual Studio Package for tool windows and editor menus


Sometimes when the requirements are too high and not related to the editor itself, there is also an option to create a Visual Studio Package for the project. The Visual Studio Package project creates a basic VSPackage. The template has the written code ready to implement a MenuItem class or a tool window.

Note

As we already know that the editor is built using WPF, we also need to know the basics of WPF to implement the tool window inside the IDE.

Getting ready

Open Visual Studio and create a project from Visual Studio Package. Visual Studio Package is a complete installation of Visual Studio, which is signed with a valid key. We name the project VSPackageSample.

Once you select the project type, you will be provided with a wizard, as shown in the following screenshot:

As we know, the Visual Studio Package is a complete install for Visual Studio, so it needs a singing assembly. We choose Generate a new key file to sign the assembly...