From 289df1c0e65431cec2b62309d66a5e4626966f61 Mon Sep 17 00:00:00 2001 From: FrankH <4848285@qq.com> Date: Thu, 5 May 2022 19:53:53 +0800 Subject: [PATCH] pre-release 1.0.34 support multi-targets in FileEncoding.csproj --- DISCUSS.md | 3 + FileEncoding.sln | 50 ++++++-- docs/Icon.png => Icon.png | Bin LICENSE.txt | 44 +++---- docs/screenshots/Preview.png => Preview.png | Bin README.md | 14 +- README.zh.md | 4 +- docs/screenshots/Preview-1.0.20.png | Bin 6834 -> 0 bytes src/FileEncoding.Shared/EncodingExtensions.cs | 1 - src/FileEncoding.Shared/EncodingMargin.cs | 1 - .../FileEncoding.VS2019.csproj} | 22 +++- .../Properties/AssemblyInfo.cs | 0 .../source.extension.vsixmanifest | 7 +- src/FileEncoding/FileEncoding.csproj | 110 ++++++++++++++++ src/FileEncoding/Properties/AssemblyInfo.cs | 33 +++++ .../source.extension.vsixmanifest | 31 +++++ .../FileEncodingVS2017.csproj | 105 +++++++++++++++ .../Properties/AssemblyInfo.cs | 33 +++++ .../source.extension.vsixmanifest | 28 ++++ .../FileEncodingVS2019.csproj | 121 ++++++++++++++++++ .../Properties/AssemblyInfo.cs | 33 +++++ .../source.extension.vsixmanifest | 25 ++++ .../FileEncodingVS2022.csproj} | 20 ++- .../Properties/AssemblyInfo.cs | 0 .../source.extension.vsixmanifest | 9 +- 25 files changed, 630 insertions(+), 64 deletions(-) create mode 100644 DISCUSS.md rename docs/Icon.png => Icon.png (100%) rename docs/screenshots/Preview.png => Preview.png (100%) delete mode 100644 docs/screenshots/Preview-1.0.20.png rename src/{FileEncoding.Vsix2019/FileEncoding.Vsix2019.csproj => FileEncoding.VS2019X/FileEncoding.VS2019.csproj} (85%) rename src/{FileEncoding.Vsix2019 => FileEncoding.VS2019X}/Properties/AssemblyInfo.cs (100%) rename src/{FileEncoding.Vsix2019 => FileEncoding.VS2019X}/source.extension.vsixmanifest (82%) create mode 100644 src/FileEncoding/FileEncoding.csproj create mode 100644 src/FileEncoding/Properties/AssemblyInfo.cs create mode 100644 src/FileEncoding/source.extension.vsixmanifest create mode 100644 src/FileEncodingVS2017/FileEncodingVS2017.csproj create mode 100644 src/FileEncodingVS2017/Properties/AssemblyInfo.cs create mode 100644 src/FileEncodingVS2017/source.extension.vsixmanifest create mode 100644 src/FileEncodingVS2019/FileEncodingVS2019.csproj create mode 100644 src/FileEncodingVS2019/Properties/AssemblyInfo.cs create mode 100644 src/FileEncodingVS2019/source.extension.vsixmanifest rename src/{FileEncoding.Vsix2022/FileEncoding.Vsix2022.csproj => FileEncodingVS2022/FileEncodingVS2022.csproj} (86%) rename src/{FileEncoding.Vsix2022 => FileEncodingVS2022}/Properties/AssemblyInfo.cs (100%) rename src/{FileEncoding.Vsix2022 => FileEncodingVS2022}/source.extension.vsixmanifest (79%) diff --git a/DISCUSS.md b/DISCUSS.md new file mode 100644 index 0000000..eb84452 --- /dev/null +++ b/DISCUSS.md @@ -0,0 +1,3 @@ +**DISCUSS** +There are more and more new characters (e.g. emoji) appear in the comments, resources and elsewhere of soruce codes; An efficient and safe convention of interpreting a file into a human friendly visible artifact is required and more and more important in the future; The Unicode BOM is already an accept standard, so why people 'refuse' to use it? + \ No newline at end of file diff --git a/FileEncoding.sln b/FileEncoding.sln index 8acc9ce..12eb59d 100644 --- a/FileEncoding.sln +++ b/FileEncoding.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 -VisualStudioVersion = 17.1.32328.378 +VisualStudioVersion = 17.1.32421.90 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_", "_", "{9DA5C298-1CA0-4A07-BAB1-0FE42C2C3153}" ProjectSection(SolutionItems) = preProject @@ -19,15 +19,21 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{70C55713-79A EndProject Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "FileEncoding.Shared", "src\FileEncoding.Shared\FileEncoding.Shared.shproj", "{8AC3A475-6792-4516-8D57-B9E17741B5F4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileEncoding.Vsix2019", "src\FileEncoding.Vsix2019\FileEncoding.Vsix2019.csproj", "{06B76B1F-9485-4B9F-9E35-438CA49F74C0}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileEncoding", "src\FileEncoding\FileEncoding.csproj", "{7CBFE2DC-B573-47F5-B746-7E2217982965}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileEncoding.Vsix2022", "src\FileEncoding.Vsix2022\FileEncoding.Vsix2022.csproj", "{5DA3ECF3-5C2B-44FB-B98F-88C2B9966240}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileEncodingVS2019", "src\FileEncodingVS2019\FileEncodingVS2019.csproj", "{BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileEncodingVS2022", "src\FileEncodingVS2022\FileEncodingVS2022.csproj", "{5DA3ECF3-5C2B-44FB-B98F-88C2B9966240}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileEncodingVS2017", "src\FileEncodingVS2017\FileEncodingVS2017.csproj", "{1697853E-15E9-4BAB-91E8-F197C4C9EEC6}" EndProject Global GlobalSection(SharedMSBuildProjectFiles) = preSolution - src\FileEncoding.Shared\FileEncoding.Shared.projitems*{06b76b1f-9485-4b9f-9e35-438ca49f74c0}*SharedItemsImports = 4 + src\FileEncoding.Shared\FileEncoding.Shared.projitems*{1697853e-15e9-4bab-91e8-f197c4c9eec6}*SharedItemsImports = 4 src\FileEncoding.Shared\FileEncoding.Shared.projitems*{5da3ecf3-5c2b-44fb-b98f-88c2b9966240}*SharedItemsImports = 4 + src\FileEncoding.Shared\FileEncoding.Shared.projitems*{7cbfe2dc-b573-47f5-b746-7e2217982965}*SharedItemsImports = 4 src\FileEncoding.Shared\FileEncoding.Shared.projitems*{8ac3a475-6792-4516-8d57-b9e17741b5f4}*SharedItemsImports = 13 + src\FileEncoding.Shared\FileEncoding.Shared.projitems*{ba497a0c-1d9b-4189-8aaa-5c99bce5b1b4}*SharedItemsImports = 4 EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -36,14 +42,22 @@ Global Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {06B76B1F-9485-4B9F-9E35-438CA49F74C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {06B76B1F-9485-4B9F-9E35-438CA49F74C0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {06B76B1F-9485-4B9F-9E35-438CA49F74C0}.Debug|x86.ActiveCfg = Debug|x86 - {06B76B1F-9485-4B9F-9E35-438CA49F74C0}.Debug|x86.Build.0 = Debug|x86 - {06B76B1F-9485-4B9F-9E35-438CA49F74C0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {06B76B1F-9485-4B9F-9E35-438CA49F74C0}.Release|Any CPU.Build.0 = Release|Any CPU - {06B76B1F-9485-4B9F-9E35-438CA49F74C0}.Release|x86.ActiveCfg = Release|x86 - {06B76B1F-9485-4B9F-9E35-438CA49F74C0}.Release|x86.Build.0 = Release|x86 + {7CBFE2DC-B573-47F5-B746-7E2217982965}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7CBFE2DC-B573-47F5-B746-7E2217982965}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7CBFE2DC-B573-47F5-B746-7E2217982965}.Debug|x86.ActiveCfg = Debug|x86 + {7CBFE2DC-B573-47F5-B746-7E2217982965}.Debug|x86.Build.0 = Debug|x86 + {7CBFE2DC-B573-47F5-B746-7E2217982965}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7CBFE2DC-B573-47F5-B746-7E2217982965}.Release|Any CPU.Build.0 = Release|Any CPU + {7CBFE2DC-B573-47F5-B746-7E2217982965}.Release|x86.ActiveCfg = Release|x86 + {7CBFE2DC-B573-47F5-B746-7E2217982965}.Release|x86.Build.0 = Release|x86 + {BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4}.Debug|x86.ActiveCfg = Debug|Any CPU + {BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4}.Debug|x86.Build.0 = Debug|Any CPU + {BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4}.Release|Any CPU.Build.0 = Release|Any CPU + {BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4}.Release|x86.ActiveCfg = Release|Any CPU + {BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4}.Release|x86.Build.0 = Release|Any CPU {5DA3ECF3-5C2B-44FB-B98F-88C2B9966240}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5DA3ECF3-5C2B-44FB-B98F-88C2B9966240}.Debug|Any CPU.Build.0 = Debug|Any CPU {5DA3ECF3-5C2B-44FB-B98F-88C2B9966240}.Debug|x86.ActiveCfg = Debug|x86 @@ -52,14 +66,24 @@ Global {5DA3ECF3-5C2B-44FB-B98F-88C2B9966240}.Release|Any CPU.Build.0 = Release|Any CPU {5DA3ECF3-5C2B-44FB-B98F-88C2B9966240}.Release|x86.ActiveCfg = Release|x86 {5DA3ECF3-5C2B-44FB-B98F-88C2B9966240}.Release|x86.Build.0 = Release|x86 + {1697853E-15E9-4BAB-91E8-F197C4C9EEC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1697853E-15E9-4BAB-91E8-F197C4C9EEC6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1697853E-15E9-4BAB-91E8-F197C4C9EEC6}.Debug|x86.ActiveCfg = Debug|x86 + {1697853E-15E9-4BAB-91E8-F197C4C9EEC6}.Debug|x86.Build.0 = Debug|x86 + {1697853E-15E9-4BAB-91E8-F197C4C9EEC6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1697853E-15E9-4BAB-91E8-F197C4C9EEC6}.Release|Any CPU.Build.0 = Release|Any CPU + {1697853E-15E9-4BAB-91E8-F197C4C9EEC6}.Release|x86.ActiveCfg = Release|x86 + {1697853E-15E9-4BAB-91E8-F197C4C9EEC6}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {8AC3A475-6792-4516-8D57-B9E17741B5F4} = {70C55713-79A1-4163-B513-D365607C682E} - {06B76B1F-9485-4B9F-9E35-438CA49F74C0} = {70C55713-79A1-4163-B513-D365607C682E} + {7CBFE2DC-B573-47F5-B746-7E2217982965} = {70C55713-79A1-4163-B513-D365607C682E} + {BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4} = {70C55713-79A1-4163-B513-D365607C682E} {5DA3ECF3-5C2B-44FB-B98F-88C2B9966240} = {70C55713-79A1-4163-B513-D365607C682E} + {1697853E-15E9-4BAB-91E8-F197C4C9EEC6} = {70C55713-79A1-4163-B513-D365607C682E} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {F940CDAB-2E10-43D0-BD7D-822158ACFDC0} diff --git a/docs/Icon.png b/Icon.png similarity index 100% rename from docs/Icon.png rename to Icon.png diff --git a/LICENSE.txt b/LICENSE.txt index 8ebbbdc..cbba8e3 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,22 +1,22 @@ -MIT License - -Copyright (c) 2021 genrwoody -Copyright (c) 2022 Myvas Foundation - -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. +MIT License + +Copyright (c) 2021 genrwoody +Copyright (c) 2022 Myvas Foundation + +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. diff --git a/docs/screenshots/Preview.png b/Preview.png similarity index 100% rename from docs/screenshots/Preview.png rename to Preview.png diff --git a/README.md b/README.md index 703a21d..672ee02 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # FileEncoding -[中文](./README.zh.md) | English +[中文](README.zh.md) | English ## What's this? This Visual Studio Extension will display the charset of current document at the right bottom margin of the editor; Click to popup a contextual menu with a list of encodings and choose the encoding that you want to convert the document to. @@ -15,7 +15,7 @@ Multi-targeting: ## Screenshots -![Preview](docs/screenshots/Preview.png?raw=true "Preview") +![Preview](Preview.png "Preview") NOTES: - **UTF-8** (without [BOM](https://docs.microsoft.com/en-us/globalization/encoding/byte-order-mark)) @@ -28,12 +28,12 @@ NOTES: 1. BOM is actually the most efficient way of identifying an UTF-8 file. 2. Most modern applications and standards support and encourage the use of BOM. -**DISCUSS**: There are more and more new characters (e.g. emoji) appear in the comments, resources and elsewhere of soruce codes; An efficient and safe convention of interpreting a file into a human friendly visible artifact is required and more and more important in the future; The Unicode BOM is already an accept standard, so why people 'refuse' to use it? - ## License -[MIT License](LICENSE.txt) - +[MIT License](LICENSE.txt) ``` Copyright (c) 2021 genrwoody Copyright (c) 2022 Myvas Foundation -``` +``` +This repo was forked from _FileEncoding_ by **genrwoody**; This release version solved an issue of confusing display for locale encoding and re-publish by Myvas Foundation. + +See [README](https://github.com/myvas/FileEncoding) for details. diff --git a/README.zh.md b/README.zh.md index 26b4af4..b6f6803 100644 --- a/README.zh.md +++ b/README.zh.md @@ -1,6 +1,6 @@ # FileEncoding -中文 | [English](./README.md) +中文 | [English](README.md) ## 介绍 本 Visual Studio 扩展(vsix)在Visual Studio的编辑器边栏的右下角显示文档的编码, 点击后可修改为您指定的编码。 @@ -15,7 +15,7 @@ ## Screenshots -![Preview](docs/screenshots/Preview.png?raw=true "Preview") +![Preview](Preview.png "Preview") 网上关于UTF-8 BOM的讨论很多,以下观点仅供参考: - **UTF-8** (不带BOM) diff --git a/docs/screenshots/Preview-1.0.20.png b/docs/screenshots/Preview-1.0.20.png deleted file mode 100644 index 456eb04566c32be1210fc56f2d8a7beca83b17cd..0000000000000000000000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$d`U;vSbj?9pMKD>e)+uO-(Fa}Yy-h!9lRY`V)w+6Cc85s!2%D(swoA2bR-ZP~t2X9?46f`8yi$4M z7Pc?l-?K1xzPfwo%!PIJP2x6V&zZ;?FWbe!+G`nB;#+G#r4@!4ax_gEgCw333U|gG zdrvm|J?HYg=sigiGmh=HXJ-#B$#o)IVaBUHCzr+Has(p^V-K$Ib_MPqGZ(z?m5sZ_ zY*F7JRe@cjzt~eb;aBHP|I$|LcXwyf*FhN^mj?|+ zoT4;-UP4V^9d$*xb|}vu9mJdhro54}s^Wrj|FiP@=eZ+tz95Mk3s{givLzkQC(I~f OfRUc5Zjp`?`riPBSS>yP diff --git a/src/FileEncoding.Shared/EncodingExtensions.cs b/src/FileEncoding.Shared/EncodingExtensions.cs index ea62c53..e3561aa 100644 --- a/src/FileEncoding.Shared/EncodingExtensions.cs +++ b/src/FileEncoding.Shared/EncodingExtensions.cs @@ -1,4 +1,3 @@ -using System; using System.Text; using Microsoft.VisualStudio.Text; diff --git a/src/FileEncoding.Shared/EncodingMargin.cs b/src/FileEncoding.Shared/EncodingMargin.cs index 9281fbb..b3ad4bd 100644 --- a/src/FileEncoding.Shared/EncodingMargin.cs +++ b/src/FileEncoding.Shared/EncodingMargin.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; diff --git a/src/FileEncoding.Vsix2019/FileEncoding.Vsix2019.csproj b/src/FileEncoding.VS2019X/FileEncoding.VS2019.csproj similarity index 85% rename from src/FileEncoding.Vsix2019/FileEncoding.Vsix2019.csproj rename to src/FileEncoding.VS2019X/FileEncoding.VS2019.csproj index 467e0ab..dc8ef12 100644 --- a/src/FileEncoding.Vsix2019/FileEncoding.Vsix2019.csproj +++ b/src/FileEncoding.VS2019X/FileEncoding.VS2019.csproj @@ -1,4 +1,4 @@ - + 17.0 @@ -13,8 +13,8 @@ {06B76B1F-9485-4B9F-9E35-438CA49F74C0} Library Properties - FileEncoding2019 - FileEncoding2019 + FileEncoding + FileEncoding v4.7.2 true true @@ -62,16 +62,16 @@ - + - + %(FileName)%(Extension) Always true - + %(FileName)%(Extension) Always true @@ -81,6 +81,16 @@ Always true + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + diff --git a/src/FileEncoding.Vsix2019/Properties/AssemblyInfo.cs b/src/FileEncoding.VS2019X/Properties/AssemblyInfo.cs similarity index 100% rename from src/FileEncoding.Vsix2019/Properties/AssemblyInfo.cs rename to src/FileEncoding.VS2019X/Properties/AssemblyInfo.cs diff --git a/src/FileEncoding.Vsix2019/source.extension.vsixmanifest b/src/FileEncoding.VS2019X/source.extension.vsixmanifest similarity index 82% rename from src/FileEncoding.Vsix2019/source.extension.vsixmanifest rename to src/FileEncoding.VS2019X/source.extension.vsixmanifest index cf4ca8b..c74b800 100644 --- a/src/FileEncoding.Vsix2019/source.extension.vsixmanifest +++ b/src/FileEncoding.VS2019X/source.extension.vsixmanifest @@ -1,14 +1,15 @@ - - FileEncoding 2019 + + FileEncoding This Visual Studio Extension will display the charset of current document at the right bottom margin of the editor; Click to popup a contextual menu with a list of encodings and choose the encoding that you want to convert the document to. https://github.com/myvas/FileEncoding LICENSE.txt + https://github.com/myvas/FileEncoding/releases Icon.png Preview.png - Encoding; charset + encoding; charset; UTF-8; BOM diff --git a/src/FileEncoding/FileEncoding.csproj b/src/FileEncoding/FileEncoding.csproj new file mode 100644 index 0000000..a52d4aa --- /dev/null +++ b/src/FileEncoding/FileEncoding.csproj @@ -0,0 +1,110 @@ + + + + 16.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + Debug + AnyCPU + 2.0 + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {7CBFE2DC-B573-47F5-B746-7E2217982965} + Library + Properties + FileEncoding + FileEncoding + v4.7.2 + true + true + true + false + false + true + true + Program + $(DevEnvDir)devenv.exe + /rootsuffix Exp + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + Designer + + + + + + + + + + + + + compile; build; native; contentfiles; analyzers; buildtransitive + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + + + + + \ No newline at end of file diff --git a/src/FileEncoding/Properties/AssemblyInfo.cs b/src/FileEncoding/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..dc4158c --- /dev/null +++ b/src/FileEncoding/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +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("FileEncoding")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("FileEncoding")] +[assembly: AssemblyCopyright("")] +[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)] + +// 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/src/FileEncoding/source.extension.vsixmanifest b/src/FileEncoding/source.extension.vsixmanifest new file mode 100644 index 0000000..ba6d09b --- /dev/null +++ b/src/FileEncoding/source.extension.vsixmanifest @@ -0,0 +1,31 @@ + + + + + FileEncoding + This Visual Studio Extension will display the charset of current document at the right bottom margin of the editor; Click to popup a contextual menu with a list of encodings and choose the encoding that you want to convert the document to. + https://github.com/myvas/FileEncoding + LICENSE.txt + https://github.com/myvas/FileEncoding/releases + Icon.png + Preview.png + encoding, charset, UTF-8, BOM + + + + amd64 + + + + + + + + + + + + + + + diff --git a/src/FileEncodingVS2017/FileEncodingVS2017.csproj b/src/FileEncodingVS2017/FileEncodingVS2017.csproj new file mode 100644 index 0000000..89dae58 --- /dev/null +++ b/src/FileEncodingVS2017/FileEncodingVS2017.csproj @@ -0,0 +1,105 @@ + + + + 17.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + Debug + AnyCPU + 2.0 + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {1697853E-15E9-4BAB-91E8-F197C4C9EEC6} + Library + Properties + FileEncoding + FileEncoding + v4.7.2 + true + true + true + false + false + true + true + Program + $(DevEnvDir)devenv.exe + /rootsuffix Exp + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + Designer + + + + + + + + + + + + + + + + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + + + + + \ No newline at end of file diff --git a/src/FileEncodingVS2017/Properties/AssemblyInfo.cs b/src/FileEncodingVS2017/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ec0cb03 --- /dev/null +++ b/src/FileEncodingVS2017/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +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("FileEncoding.VS2017")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("FileEncoding.VS2017")] +[assembly: AssemblyCopyright("")] +[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)] + +// 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/src/FileEncodingVS2017/source.extension.vsixmanifest b/src/FileEncodingVS2017/source.extension.vsixmanifest new file mode 100644 index 0000000..69e39dc --- /dev/null +++ b/src/FileEncodingVS2017/source.extension.vsixmanifest @@ -0,0 +1,28 @@ + + + + + FileEncoding + This Visual Studio Extension will display the charset of current document at the right bottom margin of the editor; Click to popup a contextual menu with a list of encodings and choose the encoding that you want to convert the document to. + https://github.com/myvas/FileEncoding + LICENSE.txt + https://github.com/myvas/FileEncoding/releases + Icon.png + Preview.png + encoding; charset; UTF-8; BOM + + + + + + + + + + + + + + + + diff --git a/src/FileEncodingVS2019/FileEncodingVS2019.csproj b/src/FileEncodingVS2019/FileEncodingVS2019.csproj new file mode 100644 index 0000000..11e71a9 --- /dev/null +++ b/src/FileEncodingVS2019/FileEncodingVS2019.csproj @@ -0,0 +1,121 @@ + + + + 16.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + Debug + AnyCPU + 2.0 + {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {BA497A0C-1D9B-4189-8AAA-5C99BCE5B1B4} + Library + Properties + FileEncodingVS2019 + FileEncodingVS2019 + v4.7.2 + true + true + true + false + false + true + true + Program + $(DevEnvDir)devenv.exe + /rootsuffix Exp + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + Designer + + + + + + + + + + + + + + + + + + 16.10.56 + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + all + + + 4.3.4 + + + 4.3.1 + + + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + + + + + + + \ No newline at end of file diff --git a/src/FileEncodingVS2019/Properties/AssemblyInfo.cs b/src/FileEncodingVS2019/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..4b85fbb --- /dev/null +++ b/src/FileEncodingVS2019/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +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("FileEncodingVS2019")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("FileEncodingVS2019")] +[assembly: AssemblyCopyright("")] +[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)] + +// 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/src/FileEncodingVS2019/source.extension.vsixmanifest b/src/FileEncodingVS2019/source.extension.vsixmanifest new file mode 100644 index 0000000..8ad086f --- /dev/null +++ b/src/FileEncodingVS2019/source.extension.vsixmanifest @@ -0,0 +1,25 @@ + + + + + FileEncoding + This Visual Studio Extension will display the charset of current document at the right bottom margin of the editor; Click to popup a contextual menu with a list of encodings and choose the encoding that you want to convert the document to. + LICENSE.txt + Icon.png + Preview.png + encoding; charset; UTF-8; BOM + + + + + + + + + + + + + + + diff --git a/src/FileEncoding.Vsix2022/FileEncoding.Vsix2022.csproj b/src/FileEncodingVS2022/FileEncodingVS2022.csproj similarity index 86% rename from src/FileEncoding.Vsix2022/FileEncoding.Vsix2022.csproj rename to src/FileEncodingVS2022/FileEncodingVS2022.csproj index c6546db..5c31cac 100644 --- a/src/FileEncoding.Vsix2022/FileEncoding.Vsix2022.csproj +++ b/src/FileEncodingVS2022/FileEncodingVS2022.csproj @@ -1,4 +1,4 @@ - + 17.0 @@ -13,8 +13,8 @@ {5DA3ECF3-5C2B-44FB-B98F-88C2B9966240} Library Properties - FileEncoding2022 - FileEncoding2022 + FileEncoding + FileEncoding v4.7.2 true true @@ -69,12 +69,12 @@ - + %(FileName)%(Extension) Always true - + %(FileName)%(Extension) Always true @@ -84,6 +84,16 @@ Always true + + %(FileName)%(Extension) + Always + true + + + %(FileName)%(Extension) + Always + true + diff --git a/src/FileEncoding.Vsix2022/Properties/AssemblyInfo.cs b/src/FileEncodingVS2022/Properties/AssemblyInfo.cs similarity index 100% rename from src/FileEncoding.Vsix2022/Properties/AssemblyInfo.cs rename to src/FileEncodingVS2022/Properties/AssemblyInfo.cs diff --git a/src/FileEncoding.Vsix2022/source.extension.vsixmanifest b/src/FileEncodingVS2022/source.extension.vsixmanifest similarity index 79% rename from src/FileEncoding.Vsix2022/source.extension.vsixmanifest rename to src/FileEncodingVS2022/source.extension.vsixmanifest index e4e60f8..97fc94c 100644 --- a/src/FileEncoding.Vsix2022/source.extension.vsixmanifest +++ b/src/FileEncodingVS2022/source.extension.vsixmanifest @@ -1,14 +1,15 @@ - - FileEncoding 2022 + + FileEncoding This Visual Studio Extension will display the charset of current document at the right bottom margin of the editor; Click to popup a contextual menu with a list of encodings and choose the encoding that you want to convert the document to. https://github.com/myvas/FileEncoding LICENSE.txt + https://github.com/myvas/FileEncoding/releases Icon.png Preview.png - Encoding; charset + encoding; charset; UTF-8; BOM @@ -16,7 +17,7 @@ - +