Click here to Skip to main content
12,630,455 members (30,191 online)
Click here to Skip to main content

Stats

41K views
856 downloads
42 bookmarked
Posted

Visual Studio Add-in Library

, 15 Sep 2010 CPOL
This library allows you to quickly and simply create add-ins for VS2008 and VS2010 (VS2005?).
TestAddin
Resources
1.ico
2.bmp
serviceunknown.ico
TestAddin.AddIn
TestAddin.csproj.user
VisualStudio Add-in Library Sources
Helpers
Menus
Actions
Base
Properties
VisualStudio Add-in Library.csproj.user
��using System;

using VisualStudio.AddInLibrary;



namespace TestAddin

{



  public class Connect : CommandManager

	{

		/// <summary>Implements the constructor for the Add-in object. Place your initialization code within this method.</summary>

		public Connect()

		{

		}



    // <summary>

    /// creates plugin commands

    /// </summary>

    protected override void CreateCommands()

    {



      // we store a reference to the plugin assembly for use in the library

      PluginAssembly = this.GetType().Assembly;



      // parameters used to for each commands

      BaseMenuParams _params = new BaseMenuParams();

      _params.AddInInstance = _addInInstance;

      _params.ResourceAssembly = PluginAssembly;      

      _params.VisualStudioInstance = _applicationObject;



      // !!!!!!!!!!!!!!!!!! create your menus HERE  !!!!!!!!!!!!!!!!!!!!!!

      AddCommand(new ToolsMenu(_params));

      // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    }

		

	}

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

KL@DotNet
Program Manager Digitas
France France
No Biography provided

You may also be interested in...

Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161205.3 | Last Updated 15 Sep 2010
Article Copyright 2010 by KL@DotNet
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid