From b985fb2cc779bf3b99cae5c862abcbac1ce53dcd Mon Sep 17 00:00:00 2001 From: kudzu_cp <6d05c8c8ef5431987001abfdb2eadc9593ac9498> Date: Sun, 19 Jun 2011 12:49:42 +0000 Subject: [PATCH] --- source/Cosmos.sln | 46 ++++- source2/VSIP/Cosmos.VS.Debug/App.xaml | 8 + source2/VSIP/Cosmos.VS.Debug/App.xaml.cs | 14 ++ .../Cosmos.VS.Debug/Cosmos.VS.Debug.csproj | 110 +++++++++++ .../Cosmos.VS.Debug.csproj.vspscc | 10 + source2/VSIP/Cosmos.VS.Debug/MainWindow.xaml | 8 + .../VSIP/Cosmos.VS.Debug/MainWindow.xaml.cs | 24 +++ .../Properties/AssemblyInfo.cs | 55 ++++++ .../Properties/Resources.Designer.cs | 62 ++++++ .../Cosmos.VS.Debug/Properties/Resources.resx | 117 +++++++++++ .../Properties/Settings.Designer.cs | 26 +++ .../Properties/Settings.settings | 7 + source2/VSIP/Cosmos.VS.Debug/ReadMe.html | 15 ++ .../Cosmos.VS.Windows.csproj | 184 ++++++++++++++++++ .../Cosmos.VS.Windows.csproj.vspscc | 10 + .../Cosmos.VS.Windows/Cosmos.VS.Windows.vsct | 114 +++++++++++ .../Cosmos.VS.WindowsPackage.cs | 95 +++++++++ .../Cosmos.VS.Windows/GlobalSuppressions.cs | 11 ++ source2/VSIP/Cosmos.VS.Windows/Guids.cs | 15 ++ source2/VSIP/Cosmos.VS.Windows/Key.snk | Bin 0 -> 596 bytes source2/VSIP/Cosmos.VS.Windows/MyControl.xaml | 17 ++ .../VSIP/Cosmos.VS.Windows/MyControl.xaml.cs | 35 ++++ .../VSIP/Cosmos.VS.Windows/MyToolWindow.cs | 47 +++++ source2/VSIP/Cosmos.VS.Windows/PkgCmdID.cs | 13 ++ .../Properties/AssemblyInfo.cs | 36 ++++ .../Cosmos.VS.Windows/Resources.Designer.cs | 81 ++++++++ source2/VSIP/Cosmos.VS.Windows/Resources.resx | 135 +++++++++++++ .../Resources/Images_24bit.bmp | Bin 0 -> 3896 bytes .../Resources/Images_32bit.bmp | Bin 0 -> 5176 bytes .../Cosmos.VS.Windows/Resources/Package.ico | Bin 0 -> 1078 bytes source2/VSIP/Cosmos.VS.Windows/VSPackage.resx | 143 ++++++++++++++ .../source.extension.vsixmanifest | 25 +++ 32 files changed, 1462 insertions(+), 1 deletion(-) create mode 100644 source2/VSIP/Cosmos.VS.Debug/App.xaml create mode 100644 source2/VSIP/Cosmos.VS.Debug/App.xaml.cs create mode 100644 source2/VSIP/Cosmos.VS.Debug/Cosmos.VS.Debug.csproj create mode 100644 source2/VSIP/Cosmos.VS.Debug/Cosmos.VS.Debug.csproj.vspscc create mode 100644 source2/VSIP/Cosmos.VS.Debug/MainWindow.xaml create mode 100644 source2/VSIP/Cosmos.VS.Debug/MainWindow.xaml.cs create mode 100644 source2/VSIP/Cosmos.VS.Debug/Properties/AssemblyInfo.cs create mode 100644 source2/VSIP/Cosmos.VS.Debug/Properties/Resources.Designer.cs create mode 100644 source2/VSIP/Cosmos.VS.Debug/Properties/Resources.resx create mode 100644 source2/VSIP/Cosmos.VS.Debug/Properties/Settings.Designer.cs create mode 100644 source2/VSIP/Cosmos.VS.Debug/Properties/Settings.settings create mode 100644 source2/VSIP/Cosmos.VS.Debug/ReadMe.html create mode 100644 source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.csproj create mode 100644 source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.csproj.vspscc create mode 100644 source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.vsct create mode 100644 source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.WindowsPackage.cs create mode 100644 source2/VSIP/Cosmos.VS.Windows/GlobalSuppressions.cs create mode 100644 source2/VSIP/Cosmos.VS.Windows/Guids.cs create mode 100644 source2/VSIP/Cosmos.VS.Windows/Key.snk create mode 100644 source2/VSIP/Cosmos.VS.Windows/MyControl.xaml create mode 100644 source2/VSIP/Cosmos.VS.Windows/MyControl.xaml.cs create mode 100644 source2/VSIP/Cosmos.VS.Windows/MyToolWindow.cs create mode 100644 source2/VSIP/Cosmos.VS.Windows/PkgCmdID.cs create mode 100644 source2/VSIP/Cosmos.VS.Windows/Properties/AssemblyInfo.cs create mode 100644 source2/VSIP/Cosmos.VS.Windows/Resources.Designer.cs create mode 100644 source2/VSIP/Cosmos.VS.Windows/Resources.resx create mode 100644 source2/VSIP/Cosmos.VS.Windows/Resources/Images_24bit.bmp create mode 100644 source2/VSIP/Cosmos.VS.Windows/Resources/Images_32bit.bmp create mode 100644 source2/VSIP/Cosmos.VS.Windows/Resources/Package.ico create mode 100644 source2/VSIP/Cosmos.VS.Windows/VSPackage.resx create mode 100644 source2/VSIP/Cosmos.VS.Windows/source.extension.vsixmanifest diff --git a/source/Cosmos.sln b/source/Cosmos.sln index 0e7a73f58..2ee3c9720 100644 --- a/source/Cosmos.sln +++ b/source/Cosmos.sln @@ -168,9 +168,13 @@ Project("{471EC4BB-E47E-4229-A789-D1F5F83B52D4}") = "StructTest", "..\source2\Us EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StructTestKernel", "..\source2\Users\Orvid\StructTest\StructTestKernel.csproj", "{086FC210-C2E9-4536-8235-9285929F904A}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.VS.Debug", "..\source2\VSIP\Cosmos.VS.Debug\Cosmos.VS.Debug.csproj", "{21A6EAF5-503D-4FA4-8948-0733D87AFEFC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.VS.Windows", "..\source2\VSIP\Cosmos.VS.Windows\Cosmos.VS.Windows.csproj", "{47E8F3DC-FF3F-4CC7-8643-1807260B0B18}" +EndProject Global GlobalSection(TeamFoundationVersionControl) = preSolution - SccNumberOfProjects = 44 + SccNumberOfProjects = 46 SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} SccTeamFoundationServer = https://tfs.codeplex.com/tfs/tfs04 SccLocalPath0 = . @@ -348,6 +352,14 @@ Global SccProjectTopLevelParentUniqueName43 = Cosmos.sln SccProjectName43 = ../source2/Kernel/Common/Cosmos.Common SccLocalPath43 = ..\\source2\\Kernel\\Common\\Cosmos.Common + SccProjectUniqueName44 = ..\\source2\\VSIP\\Cosmos.VS.Debug\\Cosmos.VS.Debug.csproj + SccProjectTopLevelParentUniqueName44 = Cosmos.sln + SccProjectName44 = ../source2/VSIP/Cosmos.VS.Debug + SccLocalPath44 = ..\\source2\\VSIP\\Cosmos.VS.Debug + SccProjectUniqueName45 = ..\\source2\\VSIP\\Cosmos.VS.Windows\\Cosmos.VS.Windows.csproj + SccProjectTopLevelParentUniqueName45 = Cosmos.sln + SccProjectName45 = ../source2/VSIP/Cosmos.VS.Windows + SccLocalPath45 = ..\\source2\\VSIP\\Cosmos.VS.Windows EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Bootstrap|Any CPU = Bootstrap|Any CPU @@ -1104,6 +1116,36 @@ Global {086FC210-C2E9-4536-8235-9285929F904A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {086FC210-C2E9-4536-8235-9285929F904A}.Release|Mixed Platforms.Build.0 = Release|Any CPU {086FC210-C2E9-4536-8235-9285929F904A}.Release|x86.ActiveCfg = Release|Any CPU + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Bootstrap|Any CPU.ActiveCfg = Release|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Bootstrap|Mixed Platforms.ActiveCfg = Release|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Bootstrap|Mixed Platforms.Build.0 = Release|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Bootstrap|x86.ActiveCfg = Release|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Bootstrap|x86.Build.0 = Release|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Debug|Any CPU.ActiveCfg = Debug|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Debug|Mixed Platforms.Build.0 = Debug|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Debug|x86.ActiveCfg = Debug|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Debug|x86.Build.0 = Debug|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Release|Any CPU.ActiveCfg = Release|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Release|Mixed Platforms.ActiveCfg = Release|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Release|Mixed Platforms.Build.0 = Release|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Release|x86.ActiveCfg = Release|x86 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC}.Release|x86.Build.0 = Release|x86 + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Bootstrap|Any CPU.ActiveCfg = Release|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Bootstrap|Any CPU.Build.0 = Release|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Bootstrap|Mixed Platforms.ActiveCfg = Release|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Bootstrap|Mixed Platforms.Build.0 = Release|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Bootstrap|x86.ActiveCfg = Release|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Debug|Any CPU.Build.0 = Debug|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Debug|x86.ActiveCfg = Debug|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Release|Any CPU.ActiveCfg = Release|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Release|Any CPU.Build.0 = Release|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -1141,6 +1183,8 @@ Global {91CBD640-C07D-4556-B4CB-6F8CD88C67C9} = {9D82B35C-7133-4ADE-AA5C-0FFB2BFA8BA6} {61535AF6-4A1E-4691-B2BC-039851EF4850} = {CD3F5E45-8B24-424F-ADF1-0211712F4CB7} {2259402E-3EAB-448D-9CC6-E5C1C2C716A5} = {CD3F5E45-8B24-424F-ADF1-0211712F4CB7} + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC} = {CD3F5E45-8B24-424F-ADF1-0211712F4CB7} + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18} = {CD3F5E45-8B24-424F-ADF1-0211712F4CB7} {239E33A7-F0C3-4801-85CA-4D8F89A31DC0} = {35CABD9D-5C85-419A-B6C9-561EAD97A553} {63F7BFB9-419E-4965-B580-304B9C9FA7D8} = {35CABD9D-5C85-419A-B6C9-561EAD97A553} {52BF0A64-EBEF-420A-9F27-6C5226A4B77B} = {35CABD9D-5C85-419A-B6C9-561EAD97A553} diff --git a/source2/VSIP/Cosmos.VS.Debug/App.xaml b/source2/VSIP/Cosmos.VS.Debug/App.xaml new file mode 100644 index 000000000..77333f19d --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/App.xaml @@ -0,0 +1,8 @@ + + + + + diff --git a/source2/VSIP/Cosmos.VS.Debug/App.xaml.cs b/source2/VSIP/Cosmos.VS.Debug/App.xaml.cs new file mode 100644 index 000000000..d2e16f268 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/App.xaml.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Windows; + +namespace Cosmos.VS.Debug { + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application { + } +} diff --git a/source2/VSIP/Cosmos.VS.Debug/Cosmos.VS.Debug.csproj b/source2/VSIP/Cosmos.VS.Debug/Cosmos.VS.Debug.csproj new file mode 100644 index 000000000..5af3f9de5 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/Cosmos.VS.Debug.csproj @@ -0,0 +1,110 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {21A6EAF5-503D-4FA4-8948-0733D87AFEFC} + WinExe + Properties + Cosmos.VS.Debug + Cosmos.VS.Debug + v4.0 + Client + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + SAK + SAK + SAK + SAK + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + + \ No newline at end of file diff --git a/source2/VSIP/Cosmos.VS.Debug/Cosmos.VS.Debug.csproj.vspscc b/source2/VSIP/Cosmos.VS.Debug/Cosmos.VS.Debug.csproj.vspscc new file mode 100644 index 000000000..feffdecaa --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/Cosmos.VS.Debug.csproj.vspscc @@ -0,0 +1,10 @@ +"" +{ +"FILE_VERSION" = "9237" +"ENLISTMENT_CHOICE" = "NEVER" +"PROJECT_FILE_RELATIVE_PATH" = "" +"NUMBER_OF_EXCLUDED_FILES" = "0" +"ORIGINAL_PROJECT_FILE_PATH" = "" +"NUMBER_OF_NESTED_PROJECTS" = "0" +"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" +} diff --git a/source2/VSIP/Cosmos.VS.Debug/MainWindow.xaml b/source2/VSIP/Cosmos.VS.Debug/MainWindow.xaml new file mode 100644 index 000000000..163939232 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/MainWindow.xaml @@ -0,0 +1,8 @@ + + + + + diff --git a/source2/VSIP/Cosmos.VS.Debug/MainWindow.xaml.cs b/source2/VSIP/Cosmos.VS.Debug/MainWindow.xaml.cs new file mode 100644 index 000000000..1e8a34a12 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/MainWindow.xaml.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Cosmos.VS.Debug { + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window { + public MainWindow() { + InitializeComponent(); + } + } +} diff --git a/source2/VSIP/Cosmos.VS.Debug/Properties/AssemblyInfo.cs b/source2/VSIP/Cosmos.VS.Debug/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..80b4a23f9 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/Properties/AssemblyInfo.cs @@ -0,0 +1,55 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// 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("Cosmos.VS.Debug")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Cosmos.VS.Debug")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +//In order to begin building localizable applications, set +//CultureYouAreCodingWith in your .csproj file +//inside a . For example, if you are using US english +//in your source files, set the to en-US. Then uncomment +//the NeutralResourceLanguage attribute below. Update the "en-US" in +//the line below to match the UICulture setting in the project file. + +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] + + +// 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 Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/source2/VSIP/Cosmos.VS.Debug/Properties/Resources.Designer.cs b/source2/VSIP/Cosmos.VS.Debug/Properties/Resources.Designer.cs new file mode 100644 index 000000000..a657bac58 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.235 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Cosmos.VS.Debug.Properties { + + + /// + /// 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 ((resourceMan == null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Cosmos.VS.Debug.Properties.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/source2/VSIP/Cosmos.VS.Debug/Properties/Resources.resx b/source2/VSIP/Cosmos.VS.Debug/Properties/Resources.resx new file mode 100644 index 000000000..ffecec851 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/source2/VSIP/Cosmos.VS.Debug/Properties/Settings.Designer.cs b/source2/VSIP/Cosmos.VS.Debug/Properties/Settings.Designer.cs new file mode 100644 index 000000000..bf0aef71e --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.235 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Cosmos.VS.Debug.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/source2/VSIP/Cosmos.VS.Debug/Properties/Settings.settings b/source2/VSIP/Cosmos.VS.Debug/Properties/Settings.settings new file mode 100644 index 000000000..8f2fd95d6 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/source2/VSIP/Cosmos.VS.Debug/ReadMe.html b/source2/VSIP/Cosmos.VS.Debug/ReadMe.html new file mode 100644 index 000000000..5124f5414 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Debug/ReadMe.html @@ -0,0 +1,15 @@ + + + + + + + +

+ Building a VS Tool Window package is easy. Deploying it apparently is not, and + because we deploy even at dev time with a setup.exe, we need to deploy it. VS + Tool Window packages use WPF UserControls though, so for now we use this + separate standalone EXE which uses WPF UserControls.

+ + + \ No newline at end of file diff --git a/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.csproj b/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.csproj new file mode 100644 index 000000000..d1dd5f937 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.csproj @@ -0,0 +1,184 @@ + + + + Debug + AnyCPU + 2.0 + {47E8F3DC-FF3F-4CC7-8643-1807260B0B18} + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Library + Properties + Cosmos.Cosmos_VS_Windows + Cosmos.VS.Windows + True + Key.snk + v4.0 + SAK + SAK + SAK + SAK + + + 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 + + + + + MyControl.xaml + + + + + True + True + Resources.resx + + + + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + true + VSPackage + + + + + Designer + + + + + + + + Menus.ctmenu + + + + + + + + + + + + Designer + MSBuild:Compile + + + + true + + + + + \ No newline at end of file diff --git a/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.csproj.vspscc b/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.csproj.vspscc new file mode 100644 index 000000000..feffdecaa --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.csproj.vspscc @@ -0,0 +1,10 @@ +"" +{ +"FILE_VERSION" = "9237" +"ENLISTMENT_CHOICE" = "NEVER" +"PROJECT_FILE_RELATIVE_PATH" = "" +"NUMBER_OF_EXCLUDED_FILES" = "0" +"ORIGINAL_PROJECT_FILE_PATH" = "" +"NUMBER_OF_NESTED_PROJECTS" = "0" +"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" +} diff --git a/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.vsct b/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.vsct new file mode 100644 index 000000000..3ab79d611 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.Windows.vsct @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.WindowsPackage.cs b/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.WindowsPackage.cs new file mode 100644 index 000000000..3cb61d4d9 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Windows/Cosmos.VS.WindowsPackage.cs @@ -0,0 +1,95 @@ +using System; +using System.Diagnostics; +using System.Globalization; +using System.Runtime.InteropServices; +using System.ComponentModel.Design; +using Microsoft.Win32; +using Microsoft.VisualStudio; +using Microsoft.VisualStudio.Shell.Interop; +using Microsoft.VisualStudio.OLE.Interop; +using Microsoft.VisualStudio.Shell; + +namespace Cosmos.Cosmos_VS_Windows +{ + /// + /// This is the class that implements the package exposed by this assembly. + /// + /// The minimum requirement for a class to be considered a valid package for Visual Studio + /// is to implement the IVsPackage interface and register itself with the shell. + /// This package uses the helper classes defined inside the Managed Package Framework (MPF) + /// to do it: it derives from the Package class that provides the implementation of the + /// IVsPackage interface and uses the registration attributes defined in the framework to + /// register itself and its components with the shell. + /// + // 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)] + // This attribute registers a tool window exposed by this package. + [ProvideToolWindow(typeof(MyToolWindow))] + [Guid(GuidList.guidCosmos_VS_WindowsPkgString)] + public sealed class Cosmos_VS_WindowsPackage : Package + { + /// + /// Default constructor of the package. + /// Inside this method you can place any initialization code that does not require + /// any Visual Studio service because at this point the package object is created but + /// not sited yet inside Visual Studio environment. The place to do all the other + /// initialization is the Initialize method. + /// + public Cosmos_VS_WindowsPackage() + { + Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering constructor for: {0}", this.ToString())); + } + + /// + /// This function is called when the user clicks the menu item that shows the + /// tool window. See the Initialize method to see how the menu item is associated to + /// this function using the OleMenuCommandService service and the MenuCommand class. + /// + private void ShowToolWindow(object sender, EventArgs e) + { + // Get the instance number 0 of this tool window. This window is single instance so this instance + // is actually the only one. + // The last flag is set to true so that if the tool window does not exists it will be created. + ToolWindowPane window = this.FindToolWindow(typeof(MyToolWindow), 0, true); + if ((null == window) || (null == window.Frame)) + { + throw new NotSupportedException(Resources.CanNotCreateWindow); + } + IVsWindowFrame windowFrame = (IVsWindowFrame)window.Frame; + Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(windowFrame.Show()); + } + + + ///////////////////////////////////////////////////////////////////////////// + // Overriden Package Implementation + #region Package Members + + /// + /// Initialization of the package; this method is called right after the package is sited, so this is the place + /// where you can put all the initilaization code that rely on services provided by VisualStudio. + /// + protected override void Initialize() + { + Trace.WriteLine (string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString())); + base.Initialize(); + + // Add our command handlers for menu (commands must exist in the .vsct file) + OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService; + if ( null != mcs ) + { + // Create the command for the tool window + CommandID toolwndCommandID = new CommandID(GuidList.guidCosmos_VS_WindowsCmdSet, (int)PkgCmdIDList.cmdidCosmosAssembly); + MenuCommand menuToolWin = new MenuCommand(ShowToolWindow, toolwndCommandID); + mcs.AddCommand( menuToolWin ); + } + } + #endregion + + } +} diff --git a/source2/VSIP/Cosmos.VS.Windows/GlobalSuppressions.cs b/source2/VSIP/Cosmos.VS.Windows/GlobalSuppressions.cs new file mode 100644 index 000000000..f0857cbb0 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Windows/GlobalSuppressions.cs @@ -0,0 +1,11 @@ +// This file is used by Code Analysis to maintain SuppressMessage +// attributes that are applied to this project. Project-level +// suppressions either have no target or are given a specific target +// and scoped to a namespace, type, member, etc. +// +// To add a suppression to this file, right-click the message in the +// Error List, point to "Suppress Message(s)", and click "In Project +// Suppression File". You do not need to add suppressions to this +// file manually. + +[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1017:MarkAssembliesWithComVisible")] diff --git a/source2/VSIP/Cosmos.VS.Windows/Guids.cs b/source2/VSIP/Cosmos.VS.Windows/Guids.cs new file mode 100644 index 000000000..c05c95677 --- /dev/null +++ b/source2/VSIP/Cosmos.VS.Windows/Guids.cs @@ -0,0 +1,15 @@ +// Guids.cs +// MUST match guids.h +using System; + +namespace Cosmos.Cosmos_VS_Windows +{ + static class GuidList + { + public const string guidCosmos_VS_WindowsPkgString = "a82b45e9-2a89-43bd-925d-c7f0edd212aa"; + public const string guidCosmos_VS_WindowsCmdSetString = "3d4b3f35-36e7-4cea-8acc-d9601e45c0b9"; + public const string guidToolWindowPersistanceString = "f019fb29-c2c2-4d27-9abf-739533c939be"; + + public static readonly Guid guidCosmos_VS_WindowsCmdSet = new Guid(guidCosmos_VS_WindowsCmdSetString); + }; +} \ No newline at end of file diff --git a/source2/VSIP/Cosmos.VS.Windows/Key.snk b/source2/VSIP/Cosmos.VS.Windows/Key.snk new file mode 100644 index 0000000000000000000000000000000000000000..4f2c3e0bd2de885d47584ae222078c6d59e4f3d3 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50097}Tpk+YmlZ<8?Z2%5Gb)S%q^5>^ovASl z??d2HS73dWu8;QC6(q42uZRTVCO7Wp!1dffqrAf8y!yqQjv>oICCV4S>scXIlxnI3 zxM~4~k}t#V_(4{G)(LF(69fvQu=2lL3EDWAoe_D7_yteVEr=rZSg{%D2vYLWqR`RP zP&y5;LTZlM_&=PbC!>X#8;}Lu%Y})|c`$g4*uREfIQI6;%GS{zN##b9tKWYD?Fb`? z)3U6t`RZ2a$)WXK0QCk#5XFaARvDZ}1YvdOp^j#Ki6@e1R_{umlY()f#lt@g>~9eW z`-^WXFCSU`RxDSKRGD`VLk<2_(yQ8EcAEJ+8TDi;(+4J}a8T!otBJCx*VdIK;P zr02s@tEB_dgrBFZ9#L?jmhxw$)Nw(5fMw4f*}#_5ISCUnvTc?AZ3UPmcqHP!9ndS^ zQv@V#(G^fhpF>->fgj-?!}8Coa9N9H_Fcr3x~^U^e7;%BsarMPq%JATn}Uly$CrL# zr|7$mJ833vp=Tvfh4K7){y;k7z+5b6A7K~UsT1Bzk%LFHQD#O600E~wY=pOUf+z5U z5gDY)qfrx?q~93_#C)GX=#p!SWB8Cl4z!A2L9^D?NFq!Wjo;6|>O_kk#4bFmaOi)D zhUzKs>|Rs%OeiH*LyIQ + + + This is a toolwindow with WPF content +