Commit eca43953 eca43953fcfef48c6ce404b988e8384886bdb19d by Christian Gerdes

First release build

- added License.rtf
- changed icons
- changed name of button
- button shows info message of plugin
- does not support upgrades yet or multiple vs installs
1 parent de2f19f7
//------------------------------------------------------------------------------
// <copyright file="InfoCommand.cs" company="Company">
// Copyright (c) Company. All rights reserved.
// <copyright file="InfoCommand.cs" company="LIGHTS IN LINE AB">
// Copyright (c) LIGHTS IN LINE AB. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
/************************************************************************************************
* All code in this file is under the MS-RL License (https://opensource.org/licenses/MS-RL) *
* By using the code in this file in any way, you agree to the above license terms. *
* Copyright (C) LIGHTS IN LINE AB (https://www.lightsinline.se) *
* Repository, Wiki, Issue tracker and more at *
* https://git.lightsinline.se/lilchger/WebServicePlugins *
* *
* Contributors *
* LIGHTS IN LINE AB *
* SWEDBANK AB *
* SKATTEVERKET *
************************************************************************************************/
using System;
using System.ComponentModel.Design;
using System.Globalization;
......@@ -93,8 +104,8 @@ namespace WebTest.WebServive.Plugin
/// <param name="e">Event args.</param>
private void MenuItemCallback(object sender, EventArgs e)
{
string message = string.Format(CultureInfo.CurrentCulture, "Inside {0}.MenuItemCallback()", this.GetType().FullName);
string title = "InfoCommand";
string message = @"Repository, Wiki, Issues at https://git.lightsinline.se/lilchger/WebServicePlugins";
string title = "WebService Plugin For WebTest version 1.0";
// Show a message box to prove we were here
VsShellUtilities.ShowMessageBox(
......
......@@ -57,6 +57,10 @@
</ItemGroup>
<ItemGroup>
<None Include="Key.snk" />
<Content Include="License.rtf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<None Include="packages.config" />
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
......@@ -65,7 +69,10 @@
<ItemGroup>
<Content Include="index.html" />
<Content Include="Resources\InfoCommand.png" />
<Content Include="Resources\WebServiceVSPackage.ico" />
<Content Include="Resources\WebServiceVSPackage.ico">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="stylesheet.css" />
<VSCTCompile Include="WebServiceVSPackage.vsct">
<ResourceName>Menus.ctmenu</ResourceName>
......
//------------------------------------------------------------------------------
// <copyright file="WebServiceVSPackage.cs" company="Company">
// Copyright (c) Company. All rights reserved.
// <copyright file="WebServiceVSPackage.cs" company="LIGHTS IN LINE AB">
// Copyright (c) LIGHTS IN LINE AB. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
/************************************************************************************************
* All code in this file is under the MS-RL License (https://opensource.org/licenses/MS-RL) *
* By using the code in this file in any way, you agree to the above license terms. *
* Copyright (C) LIGHTS IN LINE AB (https://www.lightsinline.se) *
* Repository, Wiki, Issue tracker and more at *
* https://git.lightsinline.se/lilchger/WebServicePlugins *
* *
* Contributors *
* LIGHTS IN LINE AB *
* SWEDBANK AB *
* SKATTEVERKET *
************************************************************************************************/
using System;
using System.ComponentModel.Design;
using System.Diagnostics;
......@@ -124,10 +135,10 @@ namespace WebTest.WebServive.Plugin
string runtimeLoc = new Uri(typeof(WebService.Plugin.Runtime.WebServicePlugin).Assembly.CodeBase).LocalPath;
// Check if the old runtime was found in PublicAssemblies (old version installed there)
if (runtimeLoc.Contains("PublicAssemblies"))
if (runtimeLoc.Contains("PublicAssemblies") || runtimeLoc.Contains("MyAssemblies"))
{
// CONFLICT
VsShellUtilities.ShowMessageBox(this, "Previous version of the runtime dll was found in the PublicAssemblies folder. This version will conflict with this new version of the plugin. Please remove it and restart Visual Studio.\n\n Path to the DLL: " + runtimeLoc,
VsShellUtilities.ShowMessageBox(this, "Previous version of the runtime dll was found in the PublicAssemblies or MyAssemblies folder. This version will conflict with this new version of the plugin. Please remove it and restart Visual Studio.\n\n Path to the DLL: " + runtimeLoc,
"Conflicting previous version", OLEMSGICON.OLEMSGICON_CRITICAL, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST);
return false;
}
......
......@@ -52,11 +52,11 @@
<CommandFlag>DefaultInvisible</CommandFlag>
<CommandFlag>DynamicVisibility</CommandFlag>
If you do not want an image next to your command, remove the Icon node /> -->
<Button guid="guidWebServiceVSPackageCmdSet" id="InfoCommandId" priority="0x0100" type="Button">
<Button guid="guidWebServiceVSPackageCmdSet" id="InfoCommandId" priority="0x0500" type="Button">
<Parent guid="guidWebServiceVSPackageCmdSet" id="MyMenuGroup" />
<Icon guid="guidImages" id="bmpPic1" />
<Icon guid="guidImages" id="bmpPicArrows" />
<Strings>
<ButtonText>Invoke InfoCommand</ButtonText>
<ButtonText>WebService Plugin For WebTest</ButtonText>
</Strings>
</Button>
</Buttons>
......
......@@ -5,6 +5,9 @@
<DisplayName>WebService Plugin For WebTest</DisplayName>
<Description xml:space="preserve">The WebService Plugin as a VSPackage. Based on the original CodePlex project.</Description>
<MoreInfo>https://git.lightsinline.se/lilchger/WebServicePlugins</MoreInfo>
<License>License.rtf</License>
<Icon>Resources\WebServiceVSPackage.ico</Icon>
<Tags>LoadTest WebTest JSON REST SOAP WS</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[14.0]" />
......