diff --git a/Backup/Whut.AttachTo.sln b/Backup/Whut.AttachTo.sln new file mode 100644 index 0000000..d636ca6 --- /dev/null +++ b/Backup/Whut.AttachTo.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Whut.AttachTo", "Whut.AttachTo\Whut.AttachTo.csproj", "{557B4FF9-0BBA-4631-9101-FA5DF4D519A3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {557B4FF9-0BBA-4631-9101-FA5DF4D519A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {557B4FF9-0BBA-4631-9101-FA5DF4D519A3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {557B4FF9-0BBA-4631-9101-FA5DF4D519A3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {557B4FF9-0BBA-4631-9101-FA5DF4D519A3}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Backup/Whut.AttachTo/AttachToPackage.cs b/Backup/Whut.AttachTo/AttachToPackage.cs new file mode 100644 index 0000000..de7cbf3 --- /dev/null +++ b/Backup/Whut.AttachTo/AttachToPackage.cs @@ -0,0 +1,53 @@ +using System; +using System.ComponentModel.Design; +using System.Linq; +using System.Runtime.InteropServices; +using EnvDTE; +using Microsoft.VisualStudio; +using Microsoft.VisualStudio.Shell; + +namespace Whut.AttachTo +{ + //// This attribute tells the PkgDef creation utility (CreatePkgDef.exe) that this class is a package. + [PackageRegistration(UseManagedResourcesOnly = true)] + //// This attribute is used to register the informations needed to show the this package in the Help/About dialog of Visual Studio. + [InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)] + //// This attribute is needed to let the shell know that this package exposes some menus. + [ProvideMenuResource("Menus.ctmenu", 1)] + [Guid(GuidList.guidAttachToPkgString)] + [ProvideOptionPage(typeof(GeneralOptionsPage), "Whut.AttachTo", "General", 110, 120, false)] + [ProvideAutoLoad(VSConstants.UICONTEXT.SolutionExists_string)] + [ProvideAutoLoad(VSConstants.UICONTEXT.NoSolution_string)] + public sealed class AttachToPackage : Package + { + protected override void Initialize() + { + base.Initialize(); + + OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService; + + this.AddAttachToCommand(mcs, PkgCmdIDList.cmdidWhutAttachToIIS, gop => gop.ShowAttachToIIS, "w3wp.exe"); + this.AddAttachToCommand(mcs, PkgCmdIDList.cmdidWhutAttachToIISExpress, gop => gop.ShowAttachToIISExpress, "iisexpress.exe"); + this.AddAttachToCommand(mcs, PkgCmdIDList.cmdidWhutAttachToNUnit, gop => gop.ShowAttachToNUnit, "nunit-agent.exe", "nunit.exe", "nunit-console.exe", "nunit-agent-x86.exe", "nunit-x86.exe", "nunit-console-x86.exe"); + } + + private void AddAttachToCommand(OleMenuCommandService mcs, uint commandId, Func isVisible, params string[] programsToAttach) + { + OleMenuCommand menuItemCommand = new OleMenuCommand( + delegate(object sender, EventArgs e) + { + DTE dte = (DTE)this.GetService(typeof(DTE)); + foreach (Process process in dte.Debugger.LocalProcesses) + { + if (programsToAttach.Any(p => process.Name.EndsWith(p))) + { + process.Attach(); + } + } + }, + new CommandID(GuidList.guidAttachToCmdSet, (int)commandId)); + menuItemCommand.BeforeQueryStatus += (s, e) => menuItemCommand.Visible = isVisible((GeneralOptionsPage)this.GetDialogPage(typeof(GeneralOptionsPage))); + mcs.AddCommand(menuItemCommand); + } + } +} diff --git a/Backup/Whut.AttachTo/GeneralOptionsPage.cs b/Backup/Whut.AttachTo/GeneralOptionsPage.cs new file mode 100644 index 0000000..4f7d08d --- /dev/null +++ b/Backup/Whut.AttachTo/GeneralOptionsPage.cs @@ -0,0 +1,33 @@ +using System.ComponentModel; +using Microsoft.VisualStudio.Shell; + +namespace Whut.AttachTo +{ + public class GeneralOptionsPage : DialogPage + { + public GeneralOptionsPage() + { + this.ShowAttachToIIS = true; + this.ShowAttachToIISExpress = true; + this.ShowAttachToNUnit = true; + } + + [Category("General")] + [DisplayName("Show 'Attach to IIS' command")] + [Description("Show 'Attach to IIS' command in Tools menu.")] + [DefaultValue(true)] + public bool ShowAttachToIIS { get; set; } + + [Category("General")] + [DisplayName("Show 'Attach to IIS Express command")] + [Description("Show 'Attach to IIS Express command in Tools menu.")] + [DefaultValue(true)] + public bool ShowAttachToIISExpress { get; set; } + + [Category("General")] + [DisplayName("Show 'Attach to NUnit' command")] + [Description("Show 'Attach to NUnit' command in Tools menu.")] + [DefaultValue(true)] + public bool ShowAttachToNUnit { get; set; } + } +} diff --git a/Backup/Whut.AttachTo/Guids.cs b/Backup/Whut.AttachTo/Guids.cs new file mode 100644 index 0000000..a8834ba --- /dev/null +++ b/Backup/Whut.AttachTo/Guids.cs @@ -0,0 +1,15 @@ +// Guids.cs +// MUST match guids.h +using System; + +namespace Whut.AttachTo +{ + public static class GuidList + { + public const string guidAttachToPkgString = "8d6080f0-7276-44d7-8dc4-6378fb6ce225"; + + public const string guidAttachToCmdSetString = "16e2ac5c-ec3d-4ff1-a237-11ccef54fe0f"; + + public static readonly Guid guidAttachToCmdSet = new Guid(guidAttachToCmdSetString); + } +} \ No newline at end of file diff --git a/Backup/Whut.AttachTo/Key.snk b/Backup/Whut.AttachTo/Key.snk new file mode 100644 index 0000000..8f2a590 Binary files /dev/null and b/Backup/Whut.AttachTo/Key.snk differ diff --git a/Backup/Whut.AttachTo/PkgCmdID.cs b/Backup/Whut.AttachTo/PkgCmdID.cs new file mode 100644 index 0000000..216b610 --- /dev/null +++ b/Backup/Whut.AttachTo/PkgCmdID.cs @@ -0,0 +1,14 @@ +// PkgCmdID.cs +// MUST match PkgCmdID.h + +namespace Whut.AttachTo +{ + public static class PkgCmdIDList + { + public const uint cmdidWhutAttachToIIS = 0x100; + + public const uint cmdidWhutAttachToIISExpress = 0x101; + + public const uint cmdidWhutAttachToNUnit = 0x102; + } +} \ No newline at end of file diff --git a/Backup/Whut.AttachTo/Properties/AssemblyInfo.cs b/Backup/Whut.AttachTo/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..86a5494 --- /dev/null +++ b/Backup/Whut.AttachTo/Properties/AssemblyInfo.cs @@ -0,0 +1,31 @@ +using System; +using System.Reflection; +using System.Resources; +using System.Runtime.InteropServices; + +// 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("AttachTo")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Whut")] +[assembly: AssemblyProduct("AttachTo")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: ComVisible(false)] +[assembly: CLSCompliant(false)] +[assembly: NeutralResourcesLanguage("en-US")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.1.0")] +[assembly: AssemblyFileVersion("1.0.1.0")] diff --git a/Backup/Whut.AttachTo/Resources.Designer.cs b/Backup/Whut.AttachTo/Resources.Designer.cs new file mode 100644 index 0000000..c456a39 --- /dev/null +++ b/Backup/Whut.AttachTo/Resources.Designer.cs @@ -0,0 +1,64 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Whut.AttachTo { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Whut.AttachTo.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + } +} diff --git a/Backup/Whut.AttachTo/Resources.resx b/Backup/Whut.AttachTo/Resources.resx new file mode 100644 index 0000000..891c592 --- /dev/null +++ b/Backup/Whut.AttachTo/Resources.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Backup/Whut.AttachTo/Resources/Images_32bit.bmp b/Backup/Whut.AttachTo/Resources/Images_32bit.bmp new file mode 100644 index 0000000..2fa7ab0 Binary files /dev/null and b/Backup/Whut.AttachTo/Resources/Images_32bit.bmp differ diff --git a/Backup/Whut.AttachTo/Resources/Package.ico b/Backup/Whut.AttachTo/Resources/Package.ico new file mode 100644 index 0000000..8ece2cf Binary files /dev/null and b/Backup/Whut.AttachTo/Resources/Package.ico differ diff --git a/Backup/Whut.AttachTo/VSPackage.resx b/Backup/Whut.AttachTo/VSPackage.resx new file mode 100644 index 0000000..8c7ccfb --- /dev/null +++ b/Backup/Whut.AttachTo/VSPackage.resx @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + AttachTo + + + Adds "Attach to IIS" and "Attach to NUnit" Tools menu commands. + + + Resources\Package.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/Backup/Whut.AttachTo/Whut.AttachTo.csproj b/Backup/Whut.AttachTo/Whut.AttachTo.csproj new file mode 100644 index 0000000..08e9a36 --- /dev/null +++ b/Backup/Whut.AttachTo/Whut.AttachTo.csproj @@ -0,0 +1,183 @@ + + + + Debug + AnyCPU + 2.0 + {557B4FF9-0BBA-4631-9101-FA5DF4D519A3} + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Library + Properties + Whut.AttachTo + AttachTo + True + Key.snk + v4.0 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + true + + + + + + + + + + + + false + + + + + + + + + + + + + {80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2} + 8 + 0 + 0 + primary + False + False + + + {26AD1324-4B7C-44BC-84F8-B86AED45729F} + 10 + 0 + 0 + primary + False + False + + + {1A31287A-4D7D-413E-8E32-3B374931BD89} + 8 + 0 + 0 + primary + False + False + + + {2CE2370E-D744-4936-A090-3FFFE667B0E1} + 9 + 0 + 0 + primary + False + False + + + {1CBA492E-7263-47BB-87FE-639000619B15} + 8 + 0 + 0 + primary + False + False + + + {00020430-0000-0000-C000-000000000046} + 2 + 0 + 0 + primary + False + False + + + + + Component + + + + True + True + Resources.resx + + + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + true + VSPackage + + + + + Designer + + + + + + + + Menus.ctmenu + + + + + + + + + license.txt + Always + true + + + true + Always + + + + true + + + + + + Program + <_VisualStudioInstallDir>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\InstallDir) + $(_VisualStudioInstallDir)devenv.exe + /rootsuffix Exp + + \ No newline at end of file diff --git a/Backup/Whut.AttachTo/license.txt b/Backup/Whut.AttachTo/license.txt new file mode 100644 index 0000000..0d9b19d --- /dev/null +++ b/Backup/Whut.AttachTo/license.txt @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2012 Whut, https://github.com/whut/AttachTo + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/Backup/Whut.AttachTo/preview.jpg b/Backup/Whut.AttachTo/preview.jpg new file mode 100644 index 0000000..ddff88d Binary files /dev/null and b/Backup/Whut.AttachTo/preview.jpg differ diff --git a/Backup/Whut.AttachTo/source.extension.vsixmanifest b/Backup/Whut.AttachTo/source.extension.vsixmanifest new file mode 100644 index 0000000..0798827 --- /dev/null +++ b/Backup/Whut.AttachTo/source.extension.vsixmanifest @@ -0,0 +1,32 @@ + + + + AttachTo + Whut + 1.0.1 + Adds "Attach to IIS/IIS Express/NUnit" commands to Tools menu. Every command can be hidden or assigned shortcut. + 1033 + https://github.com/whut/AttachTo + license.txt + http://visualstudiogallery.msdn.microsoft.com/d0265ab0-df51-4100-8e10-1f84403c4cd0 + preview.jpg + false + + + Pro + + + Pro + + + + + + + Visual Studio MPF + + + + |%CurrentProject%;PkgdefProjectOutputGroup| + + diff --git a/Backup1/AttachToPackage.cs b/Backup1/AttachToPackage.cs new file mode 100644 index 0000000..de7cbf3 --- /dev/null +++ b/Backup1/AttachToPackage.cs @@ -0,0 +1,53 @@ +using System; +using System.ComponentModel.Design; +using System.Linq; +using System.Runtime.InteropServices; +using EnvDTE; +using Microsoft.VisualStudio; +using Microsoft.VisualStudio.Shell; + +namespace Whut.AttachTo +{ + //// This attribute tells the PkgDef creation utility (CreatePkgDef.exe) that this class is a package. + [PackageRegistration(UseManagedResourcesOnly = true)] + //// This attribute is used to register the informations needed to show the this package in the Help/About dialog of Visual Studio. + [InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)] + //// This attribute is needed to let the shell know that this package exposes some menus. + [ProvideMenuResource("Menus.ctmenu", 1)] + [Guid(GuidList.guidAttachToPkgString)] + [ProvideOptionPage(typeof(GeneralOptionsPage), "Whut.AttachTo", "General", 110, 120, false)] + [ProvideAutoLoad(VSConstants.UICONTEXT.SolutionExists_string)] + [ProvideAutoLoad(VSConstants.UICONTEXT.NoSolution_string)] + public sealed class AttachToPackage : Package + { + protected override void Initialize() + { + base.Initialize(); + + OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService; + + this.AddAttachToCommand(mcs, PkgCmdIDList.cmdidWhutAttachToIIS, gop => gop.ShowAttachToIIS, "w3wp.exe"); + this.AddAttachToCommand(mcs, PkgCmdIDList.cmdidWhutAttachToIISExpress, gop => gop.ShowAttachToIISExpress, "iisexpress.exe"); + this.AddAttachToCommand(mcs, PkgCmdIDList.cmdidWhutAttachToNUnit, gop => gop.ShowAttachToNUnit, "nunit-agent.exe", "nunit.exe", "nunit-console.exe", "nunit-agent-x86.exe", "nunit-x86.exe", "nunit-console-x86.exe"); + } + + private void AddAttachToCommand(OleMenuCommandService mcs, uint commandId, Func isVisible, params string[] programsToAttach) + { + OleMenuCommand menuItemCommand = new OleMenuCommand( + delegate(object sender, EventArgs e) + { + DTE dte = (DTE)this.GetService(typeof(DTE)); + foreach (Process process in dte.Debugger.LocalProcesses) + { + if (programsToAttach.Any(p => process.Name.EndsWith(p))) + { + process.Attach(); + } + } + }, + new CommandID(GuidList.guidAttachToCmdSet, (int)commandId)); + menuItemCommand.BeforeQueryStatus += (s, e) => menuItemCommand.Visible = isVisible((GeneralOptionsPage)this.GetDialogPage(typeof(GeneralOptionsPage))); + mcs.AddCommand(menuItemCommand); + } + } +} diff --git a/Backup1/GeneralOptionsPage.cs b/Backup1/GeneralOptionsPage.cs new file mode 100644 index 0000000..4f7d08d --- /dev/null +++ b/Backup1/GeneralOptionsPage.cs @@ -0,0 +1,33 @@ +using System.ComponentModel; +using Microsoft.VisualStudio.Shell; + +namespace Whut.AttachTo +{ + public class GeneralOptionsPage : DialogPage + { + public GeneralOptionsPage() + { + this.ShowAttachToIIS = true; + this.ShowAttachToIISExpress = true; + this.ShowAttachToNUnit = true; + } + + [Category("General")] + [DisplayName("Show 'Attach to IIS' command")] + [Description("Show 'Attach to IIS' command in Tools menu.")] + [DefaultValue(true)] + public bool ShowAttachToIIS { get; set; } + + [Category("General")] + [DisplayName("Show 'Attach to IIS Express command")] + [Description("Show 'Attach to IIS Express command in Tools menu.")] + [DefaultValue(true)] + public bool ShowAttachToIISExpress { get; set; } + + [Category("General")] + [DisplayName("Show 'Attach to NUnit' command")] + [Description("Show 'Attach to NUnit' command in Tools menu.")] + [DefaultValue(true)] + public bool ShowAttachToNUnit { get; set; } + } +} diff --git a/Backup1/Guids.cs b/Backup1/Guids.cs new file mode 100644 index 0000000..a8834ba --- /dev/null +++ b/Backup1/Guids.cs @@ -0,0 +1,15 @@ +// Guids.cs +// MUST match guids.h +using System; + +namespace Whut.AttachTo +{ + public static class GuidList + { + public const string guidAttachToPkgString = "8d6080f0-7276-44d7-8dc4-6378fb6ce225"; + + public const string guidAttachToCmdSetString = "16e2ac5c-ec3d-4ff1-a237-11ccef54fe0f"; + + public static readonly Guid guidAttachToCmdSet = new Guid(guidAttachToCmdSetString); + } +} \ No newline at end of file diff --git a/Backup1/Key.snk b/Backup1/Key.snk new file mode 100644 index 0000000..8f2a590 Binary files /dev/null and b/Backup1/Key.snk differ diff --git a/Backup1/PkgCmdID.cs b/Backup1/PkgCmdID.cs new file mode 100644 index 0000000..216b610 --- /dev/null +++ b/Backup1/PkgCmdID.cs @@ -0,0 +1,14 @@ +// PkgCmdID.cs +// MUST match PkgCmdID.h + +namespace Whut.AttachTo +{ + public static class PkgCmdIDList + { + public const uint cmdidWhutAttachToIIS = 0x100; + + public const uint cmdidWhutAttachToIISExpress = 0x101; + + public const uint cmdidWhutAttachToNUnit = 0x102; + } +} \ No newline at end of file diff --git a/Backup1/Properties/AssemblyInfo.cs b/Backup1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..86a5494 --- /dev/null +++ b/Backup1/Properties/AssemblyInfo.cs @@ -0,0 +1,31 @@ +using System; +using System.Reflection; +using System.Resources; +using System.Runtime.InteropServices; + +// 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("AttachTo")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Whut")] +[assembly: AssemblyProduct("AttachTo")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: ComVisible(false)] +[assembly: CLSCompliant(false)] +[assembly: NeutralResourcesLanguage("en-US")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.1.0")] +[assembly: AssemblyFileVersion("1.0.1.0")] diff --git a/Backup1/Resources.Designer.cs b/Backup1/Resources.Designer.cs new file mode 100644 index 0000000..0397788 --- /dev/null +++ b/Backup1/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.34003 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Whut.AttachTo { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Whut.AttachTo.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/Backup1/Resources.resx b/Backup1/Resources.resx new file mode 100644 index 0000000..891c592 --- /dev/null +++ b/Backup1/Resources.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Backup1/Resources/Images_32bit.bmp b/Backup1/Resources/Images_32bit.bmp new file mode 100644 index 0000000..2fa7ab0 Binary files /dev/null and b/Backup1/Resources/Images_32bit.bmp differ diff --git a/Backup1/Resources/Package.ico b/Backup1/Resources/Package.ico new file mode 100644 index 0000000..8ece2cf Binary files /dev/null and b/Backup1/Resources/Package.ico differ diff --git a/Backup1/VSPackage.resx b/Backup1/VSPackage.resx new file mode 100644 index 0000000..8c7ccfb --- /dev/null +++ b/Backup1/VSPackage.resx @@ -0,0 +1,140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + AttachTo + + + Adds "Attach to IIS" and "Attach to NUnit" Tools menu commands. + + + Resources\Package.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/Backup1/Whut.AttachTo.csproj b/Backup1/Whut.AttachTo.csproj new file mode 100644 index 0000000..08e9a36 --- /dev/null +++ b/Backup1/Whut.AttachTo.csproj @@ -0,0 +1,183 @@ + + + + Debug + AnyCPU + 2.0 + {557B4FF9-0BBA-4631-9101-FA5DF4D519A3} + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Library + Properties + Whut.AttachTo + AttachTo + True + Key.snk + v4.0 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + true + + + + + + + + + + + + false + + + + + + + + + + + + + {80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2} + 8 + 0 + 0 + primary + False + False + + + {26AD1324-4B7C-44BC-84F8-B86AED45729F} + 10 + 0 + 0 + primary + False + False + + + {1A31287A-4D7D-413E-8E32-3B374931BD89} + 8 + 0 + 0 + primary + False + False + + + {2CE2370E-D744-4936-A090-3FFFE667B0E1} + 9 + 0 + 0 + primary + False + False + + + {1CBA492E-7263-47BB-87FE-639000619B15} + 8 + 0 + 0 + primary + False + False + + + {00020430-0000-0000-C000-000000000046} + 2 + 0 + 0 + primary + False + False + + + + + Component + + + + True + True + Resources.resx + + + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + true + VSPackage + + + + + Designer + + + + + + + + Menus.ctmenu + + + + + + + + + license.txt + Always + true + + + true + Always + + + + true + + + + + + Program + <_VisualStudioInstallDir>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\InstallDir) + $(_VisualStudioInstallDir)devenv.exe + /rootsuffix Exp + + \ No newline at end of file diff --git a/Backup1/license.txt b/Backup1/license.txt new file mode 100644 index 0000000..0d9b19d --- /dev/null +++ b/Backup1/license.txt @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2012 Whut, https://github.com/whut/AttachTo + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/Backup1/preview.jpg b/Backup1/preview.jpg new file mode 100644 index 0000000..ddff88d Binary files /dev/null and b/Backup1/preview.jpg differ diff --git a/Backup1/source.extension.vsixmanifest b/Backup1/source.extension.vsixmanifest new file mode 100644 index 0000000..0798827 --- /dev/null +++ b/Backup1/source.extension.vsixmanifest @@ -0,0 +1,32 @@ + + + + AttachTo + Whut + 1.0.1 + Adds "Attach to IIS/IIS Express/NUnit" commands to Tools menu. Every command can be hidden or assigned shortcut. + 1033 + https://github.com/whut/AttachTo + license.txt + http://visualstudiogallery.msdn.microsoft.com/d0265ab0-df51-4100-8e10-1f84403c4cd0 + preview.jpg + false + + + Pro + + + Pro + + + + + + + Visual Studio MPF + + + + |%CurrentProject%;PkgdefProjectOutputGroup| + + diff --git a/UpgradeLog.htm b/UpgradeLog.htm new file mode 100644 index 0000000..f7995bb Binary files /dev/null and b/UpgradeLog.htm differ diff --git a/UpgradeLog2.htm b/UpgradeLog2.htm new file mode 100644 index 0000000..6e71f77 Binary files /dev/null and b/UpgradeLog2.htm differ diff --git a/Whut.AttachTo.sln b/Whut.AttachTo.sln index 158d51e..8d30846 100755 --- a/Whut.AttachTo.sln +++ b/Whut.AttachTo.sln @@ -1,6 +1,8 @@  -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Whut.AttachTo", "Whut.AttachTo\Whut.AttachTo.csproj", "{557B4FF9-0BBA-4631-9101-FA5DF4D519A3}" EndProject Global diff --git a/Whut.AttachTo/AttachTo.vsct b/Whut.AttachTo/AttachTo.vsct index 3bde0b6..206cb30 100755 --- a/Whut.AttachTo/AttachTo.vsct +++ b/Whut.AttachTo/AttachTo.vsct @@ -15,13 +15,13 @@ defining some of the constants that we will use inside the file. --> - + - + - + @@ -40,7 +40,7 @@ must be a menu. --> - + @@ -93,7 +93,7 @@ bitmap strip containing the bitmaps and then there are the numeric ids of the elements used inside a button definition. An important aspect of this declaration is that the element id must be the actual index (1-based) of the bitmap inside the bitmap strip. --> - + @@ -109,7 +109,7 @@ - + diff --git a/Whut.AttachTo/Resources.Designer.cs b/Whut.AttachTo/Resources.Designer.cs index 4de098e..b14960b 100755 --- a/Whut.AttachTo/Resources.Designer.cs +++ b/Whut.AttachTo/Resources.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.42 +// Runtime Version:4.0.30319.34003 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,7 +19,7 @@ namespace Whut.AttachTo { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { @@ -59,6 +59,5 @@ internal Resources() { resourceCulture = value; } } - } } diff --git a/Whut.AttachTo/Whut.AttachTo.csproj b/Whut.AttachTo/Whut.AttachTo.csproj index e007f33..1b68837 100755 --- a/Whut.AttachTo/Whut.AttachTo.csproj +++ b/Whut.AttachTo/Whut.AttachTo.csproj @@ -1,5 +1,6 @@  - + + Debug AnyCPU @@ -12,7 +13,29 @@ AttachTo True Key.snk - v4.0 + v4.5.1 + 12.0 + + + + + 4.0 + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true true @@ -22,6 +45,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -31,6 +55,7 @@ prompt 4 true + false @@ -162,11 +187,38 @@ Always + + + False + Microsoft .NET Framework 4 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + + + False + Windows Installer 4.5 + true + + true + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + - + +