Skip to content

Commit

Permalink
Included reference to System.Core in WebGACForVS project
Browse files Browse the repository at this point in the history
Updated call to AddNamedCommand2 to include missing parameter
Updated calls to CommandBarButton.get_accName to include missing parameter
  • Loading branch information
unknown committed Nov 11, 2010
1 parent e8b094d commit 62d0ada
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions WebGACForVS/Connect.cs
Expand Up @@ -28,7 +28,7 @@ public class Connect : IDTExtensibility2, IDTCommandTarget

private static void AddCommand(Commands2 c, AddIn a, object[] o, string name, string display, string tip)
{
c.AddNamedCommand2(a, name, display, tip, true, 59, ref o, StatusSupported + StatusEnabled, StyleText);
c.AddNamedCommand2(a, name, display, tip, true, 59, ref o, StatusSupported + StatusEnabled, StyleText, vsCommandControlType.vsCommandControlTypeButton);
}

private const string Root = "WebGACForVS.Connect.";
Expand Down Expand Up @@ -163,7 +163,7 @@ public void OnConnection(object application, ext_ConnectMode connectMode, object
var commandBarButton = it.Current as CommandBarButton;
if (null != commandBarButton)
{
var name = commandBarButton.get_accName();
var name = commandBarButton.get_accName(0);
if (name != null && name.Contains(commandNameToLabel[item.Key]))
{
primed = true;
Expand Down Expand Up @@ -191,7 +191,7 @@ private void MaybeAddCommand(Func<string, Command> resolve, CommandBar cmdBar, s

foreach (CommandBarControl control in cmdBar.Controls)
{
var name = control.get_accName();
var name = control.get_accName(0);
if (null != name)
{
if (name.Contains(commandNameToLabel[candidate]))
Expand Down
7 changes: 5 additions & 2 deletions WebGACForVS/WebGACForVS.csproj
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{8CF2AE5E-1AC9-4022-A79C-9F18FC9F5BE5}</ProjectGuid>
<OutputType>Library</OutputType>
Expand Down Expand Up @@ -37,7 +37,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<OutputPath>..\..\..\Users\Paul\Documents\Visual Studio 2008\Addins\</OutputPath>
<OutputPath>.\</OutputPath>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>4</WarningLevel>
Expand All @@ -57,6 +57,9 @@
<Reference Include="Microsoft.Build.Engine" />
<Reference Include="Microsoft.Build.Framework" />
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
Expand Down

0 comments on commit 62d0ada

Please sign in to comment.