From 0830a7dadaf71b5199a42eaf0479b9d62a6ca5cd Mon Sep 17 00:00:00 2001 From: MysticBoy Date: Thu, 30 Jul 2020 19:54:06 +0800 Subject: [PATCH 1/3] for vsct --- ILSpy.AddIn/ILSpy.AddIn.csproj | 27 ++++-- ILSpy.AddIn/ILSpyAddIn.en-US.vsct | 124 ++++++++++++++++++++++++++++ ILSpy.AddIn/ILSpyAddIn.vsct | 102 +---------------------- ILSpy.AddIn/ILSpyAddIn.zh-Hans.vsct | 123 +++++++++++++++++++++++++++ ILSpy.AddIn/ILSpyAddInPackage.cs | 1 + 5 files changed, 269 insertions(+), 108 deletions(-) create mode 100644 ILSpy.AddIn/ILSpyAddIn.en-US.vsct create mode 100644 ILSpy.AddIn/ILSpyAddIn.zh-Hans.vsct diff --git a/ILSpy.AddIn/ILSpy.AddIn.csproj b/ILSpy.AddIn/ILSpy.AddIn.csproj index 2ffbb6b44a..adf54d6f90 100644 --- a/ILSpy.AddIn/ILSpy.AddIn.csproj +++ b/ILSpy.AddIn/ILSpy.AddIn.csproj @@ -122,23 +122,36 @@ - + + true + \ILSpy\zh-Hans\ + + + + + + + Designer - - - + + + Menus.ctmenu + Designer + - - - + + Menus.ctmenu Designer + + + diff --git a/ILSpy.AddIn/ILSpyAddIn.en-US.vsct b/ILSpy.AddIn/ILSpyAddIn.en-US.vsct new file mode 100644 index 0000000000..f0867de8b1 --- /dev/null +++ b/ILSpy.AddIn/ILSpyAddIn.en-US.vsct @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ILSpy.AddIn/ILSpyAddIn.vsct b/ILSpy.AddIn/ILSpyAddIn.vsct index d747baf571..156263ee9f 100644 --- a/ILSpy.AddIn/ILSpyAddIn.vsct +++ b/ILSpy.AddIn/ILSpyAddIn.vsct @@ -19,107 +19,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/ILSpy.AddIn/ILSpyAddIn.zh-Hans.vsct b/ILSpy.AddIn/ILSpyAddIn.zh-Hans.vsct new file mode 100644 index 0000000000..544ddc2998 --- /dev/null +++ b/ILSpy.AddIn/ILSpyAddIn.zh-Hans.vsct @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ILSpy.AddIn/ILSpyAddInPackage.cs b/ILSpy.AddIn/ILSpyAddInPackage.cs index 533a78bdd4..950cdc0d56 100644 --- a/ILSpy.AddIn/ILSpyAddInPackage.cs +++ b/ILSpy.AddIn/ILSpyAddInPackage.cs @@ -37,6 +37,7 @@ namespace ICSharpCode.ILSpy.AddIn [ProvideMenuResource("Menus.ctmenu", 1)] [Guid(GuidList.guidILSpyAddInPkgString)] [ProvideAutoLoad(VSConstants.UICONTEXT.SolutionExistsAndFullyLoaded_string, PackageAutoLoadFlags.BackgroundLoad)] + [ProvideBindingPath] public sealed class ILSpyAddInPackage : AsyncPackage { /// From 9aa39a941a09089b654bc57c17858047ca1cfdf0 Mon Sep 17 00:00:00 2001 From: MysticBoy Date: Thu, 30 Jul 2020 21:37:04 +0800 Subject: [PATCH 2/3] modify for vsct --- ILSpy.AddIn/ILSpy.AddIn.csproj | 23 +++-- ILSpy.AddIn/ILSpyAddIn.en-US.vsct | 32 +------ ILSpy.AddIn/ILSpyAddIn.vsct | 50 +++++++++- ILSpy.AddIn/ILSpyAddIn.zh-Hans.vsct | 33 +------ ILSpy.AddIn/Properties/AssemblyInfo.cs | 3 +- ILSpy.AddIn/VSPackage.en-US.resx | 126 +++++++++++++++++++++++++ ILSpy.AddIn/VSPackage.zh-Hans.resx | 6 ++ 7 files changed, 199 insertions(+), 74 deletions(-) create mode 100644 ILSpy.AddIn/VSPackage.en-US.resx diff --git a/ILSpy.AddIn/ILSpy.AddIn.csproj b/ILSpy.AddIn/ILSpy.AddIn.csproj index adf54d6f90..b4f78a163f 100644 --- a/ILSpy.AddIn/ILSpy.AddIn.csproj +++ b/ILSpy.AddIn/ILSpy.AddIn.csproj @@ -12,7 +12,6 @@ IC#Code ILSpy - en-US 1.7.1.0 1.7.1.0 @@ -90,11 +89,20 @@ Resources.Designer.cs Designer + + true + VSPackage.en-US.resources + VSPackage.resx + true VSPackage - + + true + VSPackage.zh-Hans.resources + VSPackage.resx + - - - - - - - - - - - - - - - - - - - @@ -109,15 +87,7 @@ - - - - - + diff --git a/ILSpy.AddIn/ILSpyAddIn.vsct b/ILSpy.AddIn/ILSpyAddIn.vsct index 156263ee9f..3d992eae76 100644 --- a/ILSpy.AddIn/ILSpyAddIn.vsct +++ b/ILSpy.AddIn/ILSpyAddIn.vsct @@ -19,11 +19,55 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -36,7 +80,7 @@ - + diff --git a/ILSpy.AddIn/ILSpyAddIn.zh-Hans.vsct b/ILSpy.AddIn/ILSpyAddIn.zh-Hans.vsct index 544ddc2998..f84717c945 100644 --- a/ILSpy.AddIn/ILSpyAddIn.zh-Hans.vsct +++ b/ILSpy.AddIn/ILSpyAddIn.zh-Hans.vsct @@ -35,28 +35,6 @@ with command ids defined by other packages. --> - - - - - - - - - - - - - - - - - - - @@ -108,16 +86,7 @@ - - - - - - + diff --git a/ILSpy.AddIn/Properties/AssemblyInfo.cs b/ILSpy.AddIn/Properties/AssemblyInfo.cs index db36e8d597..64f95fad17 100644 --- a/ILSpy.AddIn/Properties/AssemblyInfo.cs +++ b/ILSpy.AddIn/Properties/AssemblyInfo.cs @@ -1,5 +1,6 @@ using System; using System.Reflection; +using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -11,6 +12,6 @@ [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: CLSCompliant(false)] - +[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] [assembly: InternalsVisibleTo("ILSpy.AddIn_IntegrationTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100653c4a319be4f524972c3c5bba5fd243330f8e900287d9022d7821a63fd0086fd3801e3683dbe9897f2ecc44727023e9b40adcf180730af70c81c54476b3e5ba8b0f07f5132b2c3cc54347a2c1a9d64ebaaaf3cbffc1a18c427981e2a51d53d5ab02536b7550e732f795121c38a0abfdb38596353525d034baf9e6f1fd8ac4ac")] [assembly: InternalsVisibleTo("ILSpy.AddIn_UnitTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100653c4a319be4f524972c3c5bba5fd243330f8e900287d9022d7821a63fd0086fd3801e3683dbe9897f2ecc44727023e9b40adcf180730af70c81c54476b3e5ba8b0f07f5132b2c3cc54347a2c1a9d64ebaaaf3cbffc1a18c427981e2a51d53d5ab02536b7550e732f795121c38a0abfdb38596353525d034baf9e6f1fd8ac4ac")] diff --git a/ILSpy.AddIn/VSPackage.en-US.resx b/ILSpy.AddIn/VSPackage.en-US.resx new file mode 100644 index 0000000000..73c158134b --- /dev/null +++ b/ILSpy.AddIn/VSPackage.en-US.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + ILSpy.AddIn + + + Integration of the ILSpy Decompiler into Visual Studio. + + \ No newline at end of file diff --git a/ILSpy.AddIn/VSPackage.zh-Hans.resx b/ILSpy.AddIn/VSPackage.zh-Hans.resx index 1af7de150c..73c158134b 100644 --- a/ILSpy.AddIn/VSPackage.zh-Hans.resx +++ b/ILSpy.AddIn/VSPackage.zh-Hans.resx @@ -117,4 +117,10 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ILSpy.AddIn + + + Integration of the ILSpy Decompiler into Visual Studio. + \ No newline at end of file From 5f150efb74660e32f08750bdc0becb151ccc1a55 Mon Sep 17 00:00:00 2001 From: MysticBoy Date: Thu, 30 Jul 2020 21:58:50 +0800 Subject: [PATCH 3/3] add for vsixlangpack --- ILSpy.AddIn/ILSpy.AddIn.csproj | 9 ++++++--- ILSpy.AddIn/zh-Hans/extension.vsixlangpack | 7 +++++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 ILSpy.AddIn/zh-Hans/extension.vsixlangpack diff --git a/ILSpy.AddIn/ILSpy.AddIn.csproj b/ILSpy.AddIn/ILSpy.AddIn.csproj index b4f78a163f..a5471e3872 100644 --- a/ILSpy.AddIn/ILSpy.AddIn.csproj +++ b/ILSpy.AddIn/ILSpy.AddIn.csproj @@ -130,14 +130,13 @@ - + true \ILSpy\zh-Hans\ - - + Designer @@ -147,6 +146,10 @@ Designer + + true + Always + Menus.ctmenu Designer diff --git a/ILSpy.AddIn/zh-Hans/extension.vsixlangpack b/ILSpy.AddIn/zh-Hans/extension.vsixlangpack new file mode 100644 index 0000000000..2ebb0cd5ab --- /dev/null +++ b/ILSpy.AddIn/zh-Hans/extension.vsixlangpack @@ -0,0 +1,7 @@ + + + + ILSpy + 可以在Visual Studio中直接打开反编译工具ILSpy. + + \ No newline at end of file