rest of the files
This commit is contained in:
parent
17883e16e1
commit
b3d0faf751
|
@ -0,0 +1,51 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
//
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
//
|
||||
[assembly: AssemblyTitle("")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Revision
|
||||
// Build Number
|
||||
//
|
||||
// You can specify all the value or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
//
|
||||
// In order to sign your assembly you must specify a key to use. Refer to the
|
||||
// Microsoft .NET Framework documentation for more information on assembly signing.
|
||||
//
|
||||
// Use the attributes below to control which key is used for signing.
|
||||
//
|
||||
// Notes:
|
||||
// (*) If no key is specified - the assembly cannot be signed.
|
||||
// (*) KeyName refers to a key that has been installed in the Crypto Service
|
||||
// Provider (CSP) on your machine.
|
||||
// (*) If the key file and a key name attributes are both specified, the
|
||||
// following processing occurs:
|
||||
// (1) If the KeyName can be found in the CSP - that key is used.
|
||||
// (2) If the KeyName does not exist and the KeyFile does exist, the key
|
||||
// in the file is installed into the CSP and used.
|
||||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
|
||||
// documentation for more information on this.
|
||||
//
|
||||
[assembly: AssemblyDelaySign(false)]
|
||||
[assembly: AssemblyKeyFile("")]
|
||||
[assembly: AssemblyKeyName("")]
|
|
@ -0,0 +1,65 @@
|
|||
using System;
|
||||
using Extensibility;
|
||||
using EnvDTE;
|
||||
using EnvDTE80;
|
||||
namespace VsDingExtension
|
||||
{
|
||||
/// <summary>The object for implementing an Add-in.</summary>
|
||||
/// <seealso class='IDTExtensibility2' />
|
||||
public class Connect : IDTExtensibility2
|
||||
{
|
||||
/// <summary>Implements the constructor for the Add-in object. Place your initialization code within this method.</summary>
|
||||
public Connect()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Implements the OnConnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being loaded.</summary>
|
||||
/// <param term='application'>Root object of the host application.</param>
|
||||
/// <param term='connectMode'>Describes how the Add-in is being loaded.</param>
|
||||
/// <param term='addInInst'>Object representing this Add-in.</param>
|
||||
/// <seealso class='IDTExtensibility2' />
|
||||
public void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom)
|
||||
{
|
||||
applicationObject = (DTE2)application;
|
||||
addInInstance = (AddIn)addInInst;
|
||||
}
|
||||
|
||||
/// <summary>Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.</summary>
|
||||
/// <param term='disconnectMode'>Describes how the Add-in is being unloaded.</param>
|
||||
/// <param term='custom'>Array of parameters that are host application specific.</param>
|
||||
/// <seealso class='IDTExtensibility2' />
|
||||
public void OnDisconnection(ext_DisconnectMode disconnectMode, ref Array custom)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. Receives notification when the collection of Add-ins has changed.</summary>
|
||||
/// <param term='custom'>Array of parameters that are host application specific.</param>
|
||||
/// <seealso class='IDTExtensibility2' />
|
||||
public void OnAddInsUpdate(ref Array custom)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Implements the OnStartupComplete method of the IDTExtensibility2 interface. Receives notification that the host application has completed loading.</summary>
|
||||
/// <param term='custom'>Array of parameters that are host application specific.</param>
|
||||
/// <seealso class='IDTExtensibility2' />
|
||||
public void OnStartupComplete(ref Array custom)
|
||||
{
|
||||
applicationObject.Events.BuildEvents.OnBuildDone += BuildEventsOnOnBuildDone;
|
||||
}
|
||||
|
||||
private void BuildEventsOnOnBuildDone(vsBuildScope scope, vsBuildAction action)
|
||||
{
|
||||
System.Media.SystemSounds.Asterisk.Play();
|
||||
}
|
||||
|
||||
/// <summary>Implements the OnBeginShutdown method of the IDTExtensibility2 interface. Receives notification that the host application is being unloaded.</summary>
|
||||
/// <param term='custom'>Array of parameters that are host application specific.</param>
|
||||
/// <seealso class='IDTExtensibility2' />
|
||||
public void OnBeginShutdown(ref Array custom)
|
||||
{
|
||||
}
|
||||
|
||||
private DTE2 applicationObject;
|
||||
private AddIn addInInstance;
|
||||
}
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,139 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30424</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{54C786E5-FD14-4036-92AE-E9F25B71534B}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<NoStandardLibraries>false</NoStandardLibraries>
|
||||
<AssemblyName>VsDingExtension</AssemblyName>
|
||||
<DeploymentDirectory>.\bin\</DeploymentDirectory>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>.\bin\Debug\</OutputPath>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<IncrementalBuild>false</IncrementalBuild>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<DocumentationFile>VsDingExtension.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>.\bin\Release\</OutputPath>
|
||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<IncrementalBuild>false</IncrementalBuild>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<DocumentationFile>VsDingExtension.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<RootNamespace>VsDingExtension</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Extensibility, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AssemblyInfo.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Connect.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<COMReference Include="EnvDTE">
|
||||
<Guid>{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}</Guid>
|
||||
<VersionMajor>8</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>primary</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="EnvDTE100">
|
||||
<Guid>{26AD1324-4B7C-44BC-84F8-B86AED45729F}</Guid>
|
||||
<VersionMajor>10</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>primary</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="EnvDTE80">
|
||||
<Guid>{1A31287A-4D7D-413E-8E32-3B374931BD89}</Guid>
|
||||
<VersionMajor>8</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>primary</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="EnvDTE90">
|
||||
<Guid>{2CE2370E-D744-4936-A090-3FFFE667B0E1}</Guid>
|
||||
<VersionMajor>9</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>primary</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="Microsoft.VisualStudio.CommandBars">
|
||||
<Guid>{1CBA492E-7263-47BB-87FE-639000619B15}</Guid>
|
||||
<VersionMajor>8</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>primary</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
<COMReference Include="stdole">
|
||||
<Guid>{00020430-0000-0000-C000-000000000046}</Guid>
|
||||
<VersionMajor>2</VersionMajor>
|
||||
<VersionMinor>0</VersionMinor>
|
||||
<Lcid>0</Lcid>
|
||||
<WrapperTool>primary</WrapperTool>
|
||||
<Isolated>False</Isolated>
|
||||
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||
</COMReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="..\..\..\Addins\VsDingExtension - For Testing.AddIn">
|
||||
<Link>VsDingExtension - For Testing.AddIn</Link>
|
||||
</Content>
|
||||
<Content Include="VsDingExtension.AddIn" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>
|
||||
</PreBuildEvent>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions />
|
||||
<Target Name="AfterBuild">
|
||||
<ItemGroup>
|
||||
<AllOutputFiles Include="$(OutputPath)*.*" />
|
||||
</ItemGroup>
|
||||
<Copy SourceFiles="@(AllOutputFiles)" DestinationFiles="@(AllOutputFiles->'$(DeploymentDirectory)\%(Filename)%(Extension)')">
|
||||
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" />
|
||||
</Copy>
|
||||
</Target>
|
||||
</Project>
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>VsDingExtension</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:VsDingExtension.Connect">
|
||||
<summary>The object for implementing an Add-in.</summary>
|
||||
<seealso class='IDTExtensibility2' />
|
||||
</member>
|
||||
<member name="M:VsDingExtension.Connect.#ctor">
|
||||
<summary>Implements the constructor for the Add-in object. Place your initialization code within this method.</summary>
|
||||
</member>
|
||||
<member name="M:VsDingExtension.Connect.OnConnection(System.Object,Extensibility.ext_ConnectMode,System.Object,System.Array@)">
|
||||
<summary>Implements the OnConnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being loaded.</summary>
|
||||
<param term='application'>Root object of the host application.</param>
|
||||
<param term='connectMode'>Describes how the Add-in is being loaded.</param>
|
||||
<param term='addInInst'>Object representing this Add-in.</param>
|
||||
<seealso class='IDTExtensibility2' />
|
||||
</member>
|
||||
<member name="M:VsDingExtension.Connect.OnDisconnection(Extensibility.ext_DisconnectMode,System.Array@)">
|
||||
<summary>Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.</summary>
|
||||
<param term='disconnectMode'>Describes how the Add-in is being unloaded.</param>
|
||||
<param term='custom'>Array of parameters that are host application specific.</param>
|
||||
<seealso class='IDTExtensibility2' />
|
||||
</member>
|
||||
<member name="M:VsDingExtension.Connect.OnAddInsUpdate(System.Array@)">
|
||||
<summary>Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. Receives notification when the collection of Add-ins has changed.</summary>
|
||||
<param term='custom'>Array of parameters that are host application specific.</param>
|
||||
<seealso class='IDTExtensibility2' />
|
||||
</member>
|
||||
<member name="M:VsDingExtension.Connect.OnStartupComplete(System.Array@)">
|
||||
<summary>Implements the OnStartupComplete method of the IDTExtensibility2 interface. Receives notification that the host application has completed loading.</summary>
|
||||
<param term='custom'>Array of parameters that are host application specific.</param>
|
||||
<seealso class='IDTExtensibility2' />
|
||||
</member>
|
||||
<member name="M:VsDingExtension.Connect.OnBeginShutdown(System.Array@)">
|
||||
<summary>Implements the OnBeginShutdown method of the IDTExtensibility2 interface. Receives notification that the host application is being unloaded.</summary>
|
||||
<param term='custom'>Array of parameters that are host application specific.</param>
|
||||
<seealso class='IDTExtensibility2' />
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
Loading…
Reference in New Issue