├── .editorconfig
├── .gitattributes
├── .github
└── FUNDING.yml
├── .gitignore
├── ExtensibilityEssentials.sln
├── LICENSE
├── README.md
├── appveyor.yml
└── src
├── 2017
├── ExtensibilityEssentials2017.csproj
├── ExtensibilityEssentialsPackage.cs
├── Resources
│ └── Icon.png
├── extensions.vsext
├── source.extension.cs
└── source.extension.vsixmanifest
├── 2019
├── ExtensibilityEssentials2019.csproj
├── ExtensibilityEssentialsPackage.cs
├── Resources
│ └── Icon.png
├── extensions.vsext
├── source.extension.cs
└── source.extension.vsixmanifest
├── 2022
├── ExtensibilityEssentials2022.csproj
├── ExtensibilityEssentialsPackage.cs
├── Resources
│ └── Icon.png
├── extensions.vsext
├── source.extension.cs
└── source.extension.vsixmanifest
└── Shared
├── ExtensibilityEssentialsPackage.cs
├── Shared.projitems
└── Shared.shproj
/.editorconfig:
--------------------------------------------------------------------------------
1 | # EditorConfig is awesome:http://EditorConfig.org
2 |
3 | # top-most EditorConfig file
4 | root = true
5 |
6 | # Don't use tabs for indentation.
7 | [*]
8 | indent_style = space
9 | end_of_line = crlf
10 | # (Please don't specify an indent_size here; that has too many unintended consequences.)
11 |
12 | # Code files
13 | [*.{cs,csx,vb,vbx,xaml}]
14 | indent_size = 4
15 |
16 | # Xml project files
17 | [*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
18 | indent_size = 2
19 |
20 | # Xml config files
21 | [*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
22 | indent_size = 2
23 |
24 | # JSON files
25 | [*.json]
26 | indent_size = 2
27 |
28 | # Dotnet code style settings:
29 | [*.{cs,vb}]
30 | # Sort using and Import directives with System.* appearing first
31 | dotnet_sort_system_directives_first = true
32 | dotnet_separate_import_directive_groups = false
33 |
34 | # Avoid "this." and "Me." if not necessary
35 | dotnet_style_qualification_for_field = false : suggestion
36 | dotnet_style_qualification_for_property = false : suggestion
37 | dotnet_style_qualification_for_method = false : suggestion
38 | dotnet_style_qualification_for_event = false : suggestion
39 |
40 | # Use language keywords instead of framework type names for type references
41 | dotnet_style_predefined_type_for_locals_parameters_members = true : suggestion
42 | dotnet_style_predefined_type_for_member_access = true : suggestion
43 |
44 | # Suggest more modern language features when available
45 | dotnet_style_object_initializer = true : suggestion
46 | dotnet_style_collection_initializer = true : suggestion
47 | dotnet_style_coalesce_expression = true : suggestion
48 | dotnet_style_null_propagation = true : suggestion
49 | dotnet_style_explicit_tuple_names = true : suggestion
50 |
51 | # Naming rules - async methods to be prefixed with Async
52 | dotnet_naming_rule.async_methods_must_end_with_async.severity = warning
53 | dotnet_naming_rule.async_methods_must_end_with_async.symbols = method_symbols
54 | dotnet_naming_rule.async_methods_must_end_with_async.style = end_in_async_style
55 |
56 | dotnet_naming_symbols.method_symbols.applicable_kinds = method
57 | dotnet_naming_symbols.method_symbols.required_modifiers = async
58 |
59 | dotnet_naming_style.end_in_async_style.capitalization = pascal_case
60 | dotnet_naming_style.end_in_async_style.required_suffix = Async
61 |
62 | # Naming rules - private fields must start with an underscore
63 | dotnet_naming_rule.field_must_start_with_underscore.severity = warning
64 | dotnet_naming_rule.field_must_start_with_underscore.symbols = private_fields
65 | dotnet_naming_rule.field_must_start_with_underscore.style = start_underscore_style
66 |
67 | dotnet_naming_symbols.private_fields.applicable_kinds = field
68 | dotnet_naming_symbols.private_fields.applicable_accessibilities = private
69 |
70 | dotnet_naming_style.start_underscore_style.capitalization = camel_case
71 | dotnet_naming_style.start_underscore_style.required_prefix = _
72 |
73 | # CSharp code style settings:
74 | [*.cs]
75 | # Prefer "var" everywhere
76 | csharp_style_var_for_built_in_types = true : suggestion
77 | csharp_style_var_when_type_is_apparent = true : suggestion
78 | csharp_style_var_elsewhere = false : suggestion
79 |
80 | # Prefer method-like constructs to have a block body
81 | csharp_style_expression_bodied_methods = false : none
82 | csharp_style_expression_bodied_constructors = false : none
83 | csharp_style_expression_bodied_operators = false : none
84 |
85 | # Prefer property-like constructs to have an expression-body
86 | csharp_style_expression_bodied_properties = true : none
87 | csharp_style_expression_bodied_indexers = true : none
88 | csharp_style_expression_bodied_accessors = true : none
89 |
90 | # Suggest more modern language features when available
91 | csharp_style_pattern_matching_over_is_with_cast_check = true : suggestion
92 | csharp_style_pattern_matching_over_as_with_null_check = true : suggestion
93 | csharp_style_inlined_variable_declaration = true : suggestion
94 | csharp_style_throw_expression = true : suggestion
95 | csharp_style_conditional_delegate_call = true : suggestion
96 |
97 | # Newline settings
98 | csharp_new_line_before_open_brace = all
99 | csharp_new_line_before_else = true
100 | csharp_new_line_before_catch = true
101 | csharp_new_line_before_finally = true
102 | csharp_new_line_before_members_in_object_initializers = true
103 | csharp_new_line_before_members_in_anonymous_types = true
104 |
105 | # IDE
106 | dotnet_diagnostic.IDE0058.severity = none
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: madskristensen
4 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | x64/
19 | x86/
20 | bld/
21 | [Bb]in/
22 | [Oo]bj/
23 | [Ll]og/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | project.fragment.lock.json
46 | artifacts/
47 |
48 | *_i.c
49 | *_p.c
50 | *_i.h
51 | *.ilk
52 | *.meta
53 | *.obj
54 | *.pch
55 | *.pdb
56 | *.pgc
57 | *.pgd
58 | *.rsp
59 | *.sbr
60 | *.tlb
61 | *.tli
62 | *.tlh
63 | *.tmp
64 | *.tmp_proj
65 | *.log
66 | *.vspscc
67 | *.vssscc
68 | .builds
69 | *.pidb
70 | *.svclog
71 | *.scc
72 |
73 | # Chutzpah Test files
74 | _Chutzpah*
75 |
76 | # Visual C++ cache files
77 | ipch/
78 | *.aps
79 | *.ncb
80 | *.opendb
81 | *.opensdf
82 | *.sdf
83 | *.cachefile
84 | *.VC.db
85 | *.VC.VC.opendb
86 |
87 | # Visual Studio profiler
88 | *.psess
89 | *.vsp
90 | *.vspx
91 | *.sap
92 |
93 | # TFS 2012 Local Workspace
94 | $tf/
95 |
96 | # Guidance Automation Toolkit
97 | *.gpState
98 |
99 | # ReSharper is a .NET coding add-in
100 | _ReSharper*/
101 | *.[Rr]e[Ss]harper
102 | *.DotSettings.user
103 |
104 | # JustCode is a .NET coding add-in
105 | .JustCode
106 |
107 | # TeamCity is a build add-in
108 | _TeamCity*
109 |
110 | # DotCover is a Code Coverage Tool
111 | *.dotCover
112 |
113 | # NCrunch
114 | _NCrunch_*
115 | .*crunch*.local.xml
116 | nCrunchTemp_*
117 |
118 | # MightyMoose
119 | *.mm.*
120 | AutoTest.Net/
121 |
122 | # Web workbench (sass)
123 | .sass-cache/
124 |
125 | # Installshield output folder
126 | [Ee]xpress/
127 |
128 | # DocProject is a documentation generator add-in
129 | DocProject/buildhelp/
130 | DocProject/Help/*.HxT
131 | DocProject/Help/*.HxC
132 | DocProject/Help/*.hhc
133 | DocProject/Help/*.hhk
134 | DocProject/Help/*.hhp
135 | DocProject/Help/Html2
136 | DocProject/Help/html
137 |
138 | # Click-Once directory
139 | publish/
140 |
141 | # Publish Web Output
142 | *.[Pp]ublish.xml
143 | *.azurePubxml
144 | # TODO: Comment the next line if you want to checkin your web deploy settings
145 | # but database connection strings (with potential passwords) will be unencrypted
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
150 | # checkin your Azure Web App publish settings, but sensitive information contained
151 | # in these scripts will be unencrypted
152 | PublishScripts/
153 |
154 | # NuGet Packages
155 | *.nupkg
156 | # The packages folder can be ignored because of Package Restore
157 | **/packages/*
158 | # except build/, which is used as an MSBuild target.
159 | !**/packages/build/
160 | # Uncomment if necessary however generally it will be regenerated when needed
161 | #!**/packages/repositories.config
162 | # NuGet v3's project.json files produces more ignoreable files
163 | *.nuget.props
164 | *.nuget.targets
165 |
166 | # Microsoft Azure Build Output
167 | csx/
168 | *.build.csdef
169 |
170 | # Microsoft Azure Emulator
171 | ecf/
172 | rcf/
173 |
174 | # Windows Store app package directories and files
175 | AppPackages/
176 | BundleArtifacts/
177 | Package.StoreAssociation.xml
178 | _pkginfo.txt
179 |
180 | # Visual Studio cache files
181 | # files ending in .cache can be ignored
182 | *.[Cc]ache
183 | # but keep track of directories ending in .cache
184 | !*.[Cc]ache/
185 |
186 | # Others
187 | ClientBin/
188 | ~$*
189 | *~
190 | *.dbmdl
191 | *.dbproj.schemaview
192 | *.jfm
193 | *.pfx
194 | *.publishsettings
195 | node_modules/
196 | orleans.codegen.cs
197 |
198 | # Since there are multiple workflows, uncomment next line to ignore bower_components
199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
200 | #bower_components/
201 |
202 | # RIA/Silverlight projects
203 | Generated_Code/
204 |
205 | # Backup & report files from converting an old project file
206 | # to a newer Visual Studio version. Backup files are not needed,
207 | # because we have git ;-)
208 | _UpgradeReport_Files/
209 | Backup*/
210 | UpgradeLog*.XML
211 | UpgradeLog*.htm
212 |
213 | # SQL Server files
214 | *.mdf
215 | *.ldf
216 |
217 | # Business Intelligence projects
218 | *.rdl.data
219 | *.bim.layout
220 | *.bim_*.settings
221 |
222 | # Microsoft Fakes
223 | FakesAssemblies/
224 |
225 | # GhostDoc plugin setting file
226 | *.GhostDoc.xml
227 |
228 | # Node.js Tools for Visual Studio
229 | .ntvs_analysis.dat
230 |
231 | # Visual Studio 6 build log
232 | *.plg
233 |
234 | # Visual Studio 6 workspace options file
235 | *.opt
236 |
237 | # Visual Studio LightSwitch build output
238 | **/*.HTMLClient/GeneratedArtifacts
239 | **/*.DesktopClient/GeneratedArtifacts
240 | **/*.DesktopClient/ModelManifest.xml
241 | **/*.Server/GeneratedArtifacts
242 | **/*.Server/ModelManifest.xml
243 | _Pvt_Extensions
244 |
245 | # Paket dependency manager
246 | .paket/paket.exe
247 | paket-files/
248 |
249 | # FAKE - F# Make
250 | .fake/
251 |
252 | # JetBrains Rider
253 | .idea/
254 | *.sln.iml
255 |
256 | # CodeRush
257 | .cr/
258 |
259 | # Python Tools for Visual Studio (PTVS)
260 | __pycache__/
261 | *.pyc
--------------------------------------------------------------------------------
/ExtensibilityEssentials.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio Version 16
3 | VisualStudioVersion = 16.0.31329.18
4 | MinimumVisualStudioVersion = 10.0.40219.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExtensibilityEssentials2017", "src\2017\ExtensibilityEssentials2017.csproj", "{C2609E50-3761-4D75-B0F1-18AA431CE85B}"
6 | EndProject
7 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9F536D5B-60B8-43CD-8B19-64AD4CEAD98B}"
8 | ProjectSection(SolutionItems) = preProject
9 | .editorconfig = .editorconfig
10 | appveyor.yml = appveyor.yml
11 | README.md = README.md
12 | EndProjectSection
13 | EndProject
14 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExtensibilityEssentials2019", "src\2019\ExtensibilityEssentials2019.csproj", "{C2609E50-3761-4D75-B0F1-18AA431CE85C}"
15 | EndProject
16 | Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Shared", "src\Shared\Shared.shproj", "{C5AB8FEC-FD6F-4779-AC62-B4779DD38785}"
17 | EndProject
18 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExtensibilityEssentials2022", "src\2022\ExtensibilityEssentials2022.csproj", "{C2609E50-3761-4D75-B0F1-18AA431CE85D}"
19 | EndProject
20 | Global
21 | GlobalSection(SharedMSBuildProjectFiles) = preSolution
22 | src\Shared\Shared.projitems*{c2609e50-3761-4d75-b0f1-18aa431ce85b}*SharedItemsImports = 4
23 | src\Shared\Shared.projitems*{c2609e50-3761-4d75-b0f1-18aa431ce85c}*SharedItemsImports = 4
24 | src\Shared\Shared.projitems*{c2609e50-3761-4d75-b0f1-18aa431ce85d}*SharedItemsImports = 4
25 | src\Shared\Shared.projitems*{c5ab8fec-fd6f-4779-ac62-b4779dd38785}*SharedItemsImports = 13
26 | EndGlobalSection
27 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
28 | Debug|Any CPU = Debug|Any CPU
29 | Release|Any CPU = Release|Any CPU
30 | EndGlobalSection
31 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
32 | {C2609E50-3761-4D75-B0F1-18AA431CE85B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33 | {C2609E50-3761-4D75-B0F1-18AA431CE85B}.Debug|Any CPU.Build.0 = Debug|Any CPU
34 | {C2609E50-3761-4D75-B0F1-18AA431CE85B}.Release|Any CPU.ActiveCfg = Release|Any CPU
35 | {C2609E50-3761-4D75-B0F1-18AA431CE85B}.Release|Any CPU.Build.0 = Release|Any CPU
36 | {C2609E50-3761-4D75-B0F1-18AA431CE85C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37 | {C2609E50-3761-4D75-B0F1-18AA431CE85C}.Debug|Any CPU.Build.0 = Debug|Any CPU
38 | {C2609E50-3761-4D75-B0F1-18AA431CE85C}.Release|Any CPU.ActiveCfg = Release|Any CPU
39 | {C2609E50-3761-4D75-B0F1-18AA431CE85C}.Release|Any CPU.Build.0 = Release|Any CPU
40 | {C2609E50-3761-4D75-B0F1-18AA431CE85D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41 | {C2609E50-3761-4D75-B0F1-18AA431CE85D}.Debug|Any CPU.Build.0 = Debug|Any CPU
42 | {C2609E50-3761-4D75-B0F1-18AA431CE85D}.Release|Any CPU.ActiveCfg = Release|Any CPU
43 | {C2609E50-3761-4D75-B0F1-18AA431CE85D}.Release|Any CPU.Build.0 = Release|Any CPU
44 | EndGlobalSection
45 | GlobalSection(SolutionProperties) = preSolution
46 | HideSolutionNode = FALSE
47 | EndGlobalSection
48 | GlobalSection(ExtensibilityGlobals) = postSolution
49 | SolutionGuid = {E2B1949E-ED83-4CDD-B1E1-1BEB3D2D0C2A}
50 | EndGlobalSection
51 | EndGlobal
52 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2018 Mads Kristensen
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # VS Extensibility Essentials
2 |
3 | [](https://ci.appveyor.com/project/madskristensen/extensibilityessentials)
4 |
5 | ---------------------------------------
6 |
7 | A collection of extensions that makes it much easier to write Visual Studio extensions.
8 |
9 | This is a must-have for any extension author.
10 |
11 | ## Included extensions
12 |
13 | ### 2017
14 |
15 | * [Extensibility Tools](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityTools)
16 | * [Insert Guid](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.insertguid)
17 | * [Image Optimizer](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ImageOptimizer)
18 | * [Command Explorer](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.CommandExplorer)
19 | * [Settings Store Explorer](https://marketplace.visualstudio.com/items?itemName=PaulHarrington.SettingsStoreExplorer)
20 | * [KnownMonikers Explorer](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.KnownMonikersExplorer)
21 | * [Clean MEF Component Cache](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ClearMEFComponentCache)
22 | * [Extensibility Logs](https://marketplace.visualstudio.com/items?itemName=YannDuran.ExtensibilityLogs)
23 | * [Pkgdef Language](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.PkgdefLanguage)
24 |
25 | ### 2019
26 |
27 | * [VSIX Synchronizer](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.VsixSynchronizer)
28 | * [Insert Guid](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.insertguid)
29 | * [Image Optimizer](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ImageOptimizer)
30 | * [Command Explorer](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.CommandExplorer)
31 | * [Settings Store Explorer](https://marketplace.visualstudio.com/items?itemName=PaulHarrington.SettingsStoreExplorer)
32 | * [KnownMonikers Explorer](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.KnownMonikersExplorer)
33 | * [Clean MEF Component Cache](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ClearMEFComponentCache)
34 | * [VSCT IntelliSense](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.VsctIntellisense)
35 | * [Image Manifest Tools](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ImageManifestTools)
36 | * [Extensibility Logs](https://marketplace.visualstudio.com/items?itemName=YannDuran.ExtensibilityLogs)
37 | * [Pkgdef Language](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.PkgdefLanguage)
38 | * [Extensibility Template Pack](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityItemTemplates)
39 |
40 | ## Extension pack
41 | This is an extension pack which is a new feature of Visual Studio 2017 Update 8 (15.8) that makes it easy to ship multiple extensions in a single installable package. Read more about [extension packs here](https://docs.microsoft.com/en-us/visualstudio/extensibility/walkthough-create-extension-pack).
42 |
43 | ## License
44 | [Apache 2.0](LICENSE)
--------------------------------------------------------------------------------
/appveyor.yml:
--------------------------------------------------------------------------------
1 | image: Visual Studio 2022
2 |
3 | install:
4 | - ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
5 |
6 | before_build:
7 | - ps: Vsix-IncrementVsixVersion .\src\2017\source.extension.vsixmanifest | Vsix-UpdateBuildVersion
8 | - ps: Vsix-IncrementVsixVersion .\src\2019\source.extension.vsixmanifest
9 | - ps: Vsix-IncrementVsixVersion .\src\2022\source.extension.vsixmanifest
10 | - ps: Vsix-TokenReplacement src\2017\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
11 | - ps: Vsix-TokenReplacement src\2019\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
12 | - ps: Vsix-TokenReplacement src\2022\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
13 |
14 | build_script:
15 | - nuget restore -Verbosity quiet
16 | - msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
17 |
18 | after_test:
19 | - ps: Vsix-PushArtifacts | Vsix-PublishToGallery
20 |
--------------------------------------------------------------------------------
/src/2017/ExtensibilityEssentials2017.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(VisualStudioVersion)
5 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
6 |
7 |
8 | 9.0
9 | enable
10 | true
11 |
12 |
13 |
14 | Debug
15 | AnyCPU
16 | 2.0
17 | {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
18 | {C2609E50-3761-4D75-B0F1-18AA431CE85B}
19 | Library
20 | ExtensibilityEssentials
21 | ExtensibilityEssentials2017
22 | v4.6
23 | true
24 | true
25 | true
26 | true
27 | true
28 | false
29 | Program
30 | $(DevEnvDir)devenv.exe
31 | /rootsuffix Exp
32 |
33 |
34 | true
35 | full
36 | false
37 | bin\Debug\
38 | DEBUG;TRACE
39 | prompt
40 | 4
41 |
42 |
43 | pdbonly
44 | true
45 | bin\Release\
46 | TRACE
47 | prompt
48 | 4
49 |
50 |
51 |
52 | true
53 |
54 |
55 | true
56 |
57 |
58 | Resources\LICENSE
59 | true
60 |
61 |
62 | Designer
63 | VsixManifestGenerator
64 | source.extension.cs
65 |
66 |
67 |
68 |
69 | compile; build; native; contentfiles; analyzers; buildtransitive
70 |
71 |
72 | 15.9.3039
73 | runtime; build; native; contentfiles; analyzers
74 | all
75 |
76 |
77 |
78 |
79 |
80 | True
81 | True
82 | source.extension.vsixmanifest
83 |
84 |
85 |
86 |
87 |
88 |
95 |
--------------------------------------------------------------------------------
/src/2017/ExtensibilityEssentialsPackage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 |
4 | namespace ExtensibilityEssentials
5 | {
6 | [Guid("f9ad9d0a-2234-4452-ade8-c240adcfb5e4")]
7 | partial class ExtensibilityEssentialsPackage { }
8 | }
9 |
--------------------------------------------------------------------------------
/src/2017/Resources/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VsixCommunity/ExtensibilityEssentials/117113c7fe0f6d67a96d10970ed9507348cd22e6/src/2017/Resources/Icon.png
--------------------------------------------------------------------------------
/src/2017/extensions.vsext:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0",
3 | "extensions": [
4 | {
5 | "name": "KnownMonikers Explorer",
6 | "vsixId": "c38f3512-4653-4d97-a4c5-860a425209f5"
7 | },
8 | {
9 | "name": "Extensibility Tools",
10 | "vsixId": "f8330d54-0469-43a7-8fc0-7f19febeb897"
11 | },
12 | {
13 | "name": "Settings Store Explorer",
14 | "vsixId": "SettingsStoreExplorer.4e51ef4d-4a0b-46d2-8230-8881625af1a2"
15 | },
16 | {
17 | "name": "Insert Guid",
18 | "vsixId": "9def4441-acfd-4dd6-bffd-4531a57dee37"
19 | },
20 | {
21 | "name": "Image Optimizer",
22 | "vsixId": "bf95754f-93d3-42ff-bfe3-e05d23188b08"
23 | },
24 | {
25 | "name": "Command Explorer",
26 | "vsixId": "1a973c52-a674-48d8-a276-65ddab1ac598"
27 | },
28 | {
29 | "name": "Clean MEF Component Cache",
30 | "vsixId": "f5028141-9dd0-4ac4-ae6d-0481ae9a940d"
31 | },
32 | {
33 | "name": "Extensibility Logs",
34 | "vsixId": "595c271e-e4b3-40ea-9ef7-1138f49b529c"
35 | },
36 | {
37 | "name": "Pkgdef Language",
38 | "vsixId": "06278dd5-5d9d-4f27-a3e8-cd619b101a50"
39 | },
40 | {
41 | "name": "Textmate Grammar Template",
42 | "vsixId": "2913ed5b-5767-43f5-be7c-ff5c68754bc3"
43 | }
44 | ]
45 | }
--------------------------------------------------------------------------------
/src/2017/source.extension.cs:
--------------------------------------------------------------------------------
1 | // ------------------------------------------------------------------------------
2 | //
3 | // This file was generated by VSIX Synchronizer
4 | //
5 | // ------------------------------------------------------------------------------
6 | namespace ExtensibilityEssentials
7 | {
8 | internal sealed partial class Vsix
9 | {
10 | public const string Id = "f613e37-c9b4-4e49-b61f-0cf036ca76d6";
11 | public const string Name = "Extensibility Essentials 2017";
12 | public const string Description = @"A collection of extensions that makes it much easier to write Visual Studio extensions";
13 | public const string Language = "en-US";
14 | public const string Version = "1.1.999";
15 | public const string Author = "Mads Kristensen";
16 | public const string Tags = "vsix, vsx, extensibility";
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/2017/source.extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Extensibility Essentials 2017
6 | A collection of extensions that makes it much easier to write Visual Studio extensions
7 | https://github.com/VsixCommunity/ExtensibilityEssentials
8 | Resources\LICENSE
9 | Resources\Icon.png
10 | Resources\Icon.png
11 | vsix, vsx, extensibility
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/2019/ExtensibilityEssentials2019.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(VisualStudioVersion)
5 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
6 |
7 |
8 | 9.0
9 | enable
10 | true
11 |
12 |
13 |
14 | Debug
15 | AnyCPU
16 | 2.0
17 | {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
18 | {C2609E50-3761-4D75-B0F1-18AA431CE85C}
19 | Library
20 | ExtensibilityEssentials
21 | ExtensibilityEssentials2019
22 | v4.7.2
23 | true
24 | true
25 | true
26 | true
27 | true
28 | false
29 | Program
30 | $(DevEnvDir)devenv.exe
31 | /rootsuffix Exp
32 |
33 |
34 | true
35 | full
36 | false
37 | bin\Debug\
38 | DEBUG;TRACE
39 | prompt
40 | 4
41 |
42 |
43 | pdbonly
44 | true
45 | bin\Release\
46 | TRACE
47 | prompt
48 | 4
49 |
50 |
51 |
52 | true
53 |
54 |
55 | true
56 |
57 |
58 | Resources\LICENSE
59 | true
60 |
61 |
62 | Designer
63 | VsixManifestGenerator
64 | source.extension.cs
65 |
66 |
67 |
68 |
69 | compile; build; native; contentfiles; analyzers; buildtransitive
70 |
71 |
72 | 16.9.1050
73 | runtime; build; native; contentfiles; analyzers
74 | all
75 |
76 |
77 |
78 |
79 |
80 | True
81 | True
82 | source.extension.vsixmanifest
83 |
84 |
85 |
86 |
87 |
88 |
95 |
--------------------------------------------------------------------------------
/src/2019/ExtensibilityEssentialsPackage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 |
4 | namespace ExtensibilityEssentials
5 | {
6 | [Guid("73672e8d-1f17-4c7f-8b11-105dd9f08eea")]
7 | partial class ExtensibilityEssentialsPackage { }
8 | }
9 |
--------------------------------------------------------------------------------
/src/2019/Resources/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VsixCommunity/ExtensibilityEssentials/117113c7fe0f6d67a96d10970ed9507348cd22e6/src/2019/Resources/Icon.png
--------------------------------------------------------------------------------
/src/2019/extensions.vsext:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0",
3 | "extensions": [
4 | {
5 | "name": "KnownMonikers Explorer",
6 | "vsixId": "c38f3512-4653-4d97-a4c5-860a425209f5"
7 | },
8 | {
9 | "name": "VSIX Synchronizer",
10 | "vsixId": "d7834c28-6a0f-4b5a-b3e0-735dc78cd439"
11 | },
12 | {
13 | "name": "Settings Store Explorer",
14 | "vsixId": "SettingsStoreExplorer.4e51ef4d-4a0b-46d2-8230-8881625af1a2"
15 | },
16 | {
17 | "name": "Insert Guid",
18 | "vsixId": "9def4441-acfd-4dd6-bffd-4531a57dee37"
19 | },
20 | {
21 | "name": "Image Manifest Tools",
22 | "vsixId": "d5ed0bf3-4e8d-4199-b1ff-6c271e08bd0b"
23 | },
24 | {
25 | "name": "Image Optimizer",
26 | "vsixId": "bf95754f-93d3-42ff-bfe3-e05d23188b08"
27 | },
28 | {
29 | "name": "Command Explorer",
30 | "vsixId": "1a973c52-a674-48d8-a276-65ddab1ac598"
31 | },
32 | {
33 | "name": "Clean MEF Component Cache",
34 | "vsixId": "f5028141-9dd0-4ac4-ae6d-0481ae9a940d"
35 | },
36 | {
37 | "name": "VSCT IntelliSense",
38 | "vsixId": "6c042f35-bf5c-4cf2-826e-05d6d12e5309"
39 | },
40 | {
41 | "name": "Extensibility Logs",
42 | "vsixId": "595c271e-e4b3-40ea-9ef7-1138f49b529c"
43 | },
44 | {
45 | "name": "Pkgdef Language",
46 | "vsixId": "06278dd5-5d9d-4f27-a3e8-cd619b101a50"
47 | },
48 | {
49 | "name": "Extensibility Template Pack",
50 | "vsixId": "88049e1e-62f2-4ea2-851f-9ddb2de37f41"
51 | },
52 | {
53 | "name": "Textmate Grammar Template",
54 | "vsixId": "2913ed5b-5767-43f5-be7c-ff5c68754bc3"
55 | },
56 | {
57 | "name": "Extensibility Margin",
58 | "vsixId": "41b4c077-6d9f-4e0a-a356-988baf3e830a"
59 | },
60 | {
61 | "name": "VS Theme Colors 2019",
62 | "vsixId": "6ad27930-f7a1-4888-a172-c6fa4440e7a0"
63 | }
64 | ]
65 | }
--------------------------------------------------------------------------------
/src/2019/source.extension.cs:
--------------------------------------------------------------------------------
1 | // ------------------------------------------------------------------------------
2 | //
3 | // This file was generated by VSIX Synchronizer
4 | //
5 | // ------------------------------------------------------------------------------
6 | namespace ExtensibilityEssentials
7 | {
8 | internal sealed partial class Vsix
9 | {
10 | public const string Id = "4c38fd13-e407-4da6-a7b2-a04346af8942";
11 | public const string Name = "Extensibility Essentials 2019";
12 | public const string Description = @"A collection of extensions that makes it much easier to write Visual Studio extensions";
13 | public const string Language = "en-US";
14 | public const string Version = "1.1.999";
15 | public const string Author = "Mads Kristensen";
16 | public const string Tags = "vsix, vsx, extensibility";
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/2019/source.extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Extensibility Essentials 2019
6 | A collection of extensions that makes it much easier to write Visual Studio extensions
7 | https://github.com/VsixCommunity/ExtensibilityEssentials
8 | Resources\LICENSE
9 | Resources\Icon.png
10 | Resources\Icon.png
11 | vsix, vsx, extensibility
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/2022/ExtensibilityEssentials2022.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(VisualStudioVersion)
5 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
6 |
7 |
8 | 9.0
9 | enable
10 | true
11 |
12 |
13 |
14 | Debug
15 | AnyCPU
16 | 2.0
17 | {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
18 | {C2609E50-3761-4D75-B0F1-18AA431CE85D}
19 | Library
20 | ExtensibilityEssentials
21 | ExtensibilityEssentials2022
22 | v4.7.2
23 | true
24 | true
25 | true
26 | true
27 | true
28 | false
29 | Program
30 | $(DevEnvDir)devenv.exe
31 | /rootsuffix Exp
32 |
33 |
34 | true
35 | full
36 | false
37 | bin\Debug\
38 | DEBUG;TRACE
39 | prompt
40 | 4
41 |
42 |
43 | pdbonly
44 | true
45 | bin\Release\
46 | TRACE
47 | prompt
48 | 4
49 |
50 |
51 |
52 | true
53 |
54 |
55 | true
56 |
57 |
58 | Resources\LICENSE
59 | true
60 |
61 |
62 | Designer
63 | VsixManifestGenerator
64 | source.extension.cs
65 |
66 |
67 |
68 |
69 | compile; build; native; contentfiles; analyzers; buildtransitive
70 |
71 |
72 | 17.0.1600
73 | runtime; build; native; contentfiles; analyzers
74 | all
75 |
76 |
77 |
78 |
79 |
80 | True
81 | True
82 | source.extension.vsixmanifest
83 |
84 |
85 |
86 |
87 |
88 |
95 |
--------------------------------------------------------------------------------
/src/2022/ExtensibilityEssentialsPackage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.InteropServices;
3 |
4 | namespace ExtensibilityEssentials
5 | {
6 | [Guid("73672e8d-1f17-4c7f-8b11-105dd9f08eea")]
7 | partial class ExtensibilityEssentialsPackage { }
8 | }
9 |
--------------------------------------------------------------------------------
/src/2022/Resources/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VsixCommunity/ExtensibilityEssentials/117113c7fe0f6d67a96d10970ed9507348cd22e6/src/2022/Resources/Icon.png
--------------------------------------------------------------------------------
/src/2022/extensions.vsext:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0",
3 | "extensions": [
4 | {
5 | "name": "VSIX Synchronizer",
6 | "vsixId": "751759cc-53b5-45f6-8d75-43392a1dd89c"
7 | },
8 | {
9 | "name": "Insert Guid",
10 | "vsixId": "9def4441-acfd-4dd6-bffd-4531a57dee37"
11 | },
12 | {
13 | "name": "Image Manifest Tools",
14 | "vsixId": "04f92311-4748-4f87-9d94-1aae42483d1f"
15 | },
16 | {
17 | "name": "Image Optimizer",
18 | "vsixId": "bf95754f-93d3-42ff-bfe3-e05d23188b08"
19 | },
20 | {
21 | "name": "Clean MEF Component Cache",
22 | "vsixId": "f5028141-9dd0-4ac4-ae6d-0481ae9a940d"
23 | },
24 | {
25 | "name": "Pkgdef Language",
26 | "vsixId": "06278dd5-5d9d-4f27-a3e8-cd619b101a50"
27 | },
28 | {
29 | "name": "Extensibility Margin",
30 | "vsixId": "41b4c077-6d9f-4e0a-a356-988baf3e830a"
31 | },
32 | {
33 | "name": "Extensibility Template Pack",
34 | "vsixId": "88049e1e-62f2-4ea2-851f-9ddb2de37f42"
35 | },
36 | {
37 | "name": "KnownMonikers Explorer",
38 | "vsixId": "c38f3512-4653-4d97-a4c5-860a425209f6"
39 | },
40 | {
41 | "name": "VSCT IntelliSense",
42 | "vsixId": "6c042f35-bf5c-4cf2-826e-05d6d12e5300"
43 | },
44 | {
45 | "name": "Textmate Grammar Template",
46 | "vsixId": "2913ed5b-5767-43f5-be7c-ff5c68754bc3"
47 | },
48 | {
49 | "name": "VS Theme Colors 2022",
50 | "vsixId": "6ad27930-f7a1-4888-a172-c6fa4440e7a1"
51 | },
52 | {
53 | "name": "VSCode Theme Converter",
54 | "vsixId": "ThemeConverter.df309c71-fe30-4f88-bf07-d73fbc24fd11"
55 | }
56 | ]
57 | }
--------------------------------------------------------------------------------
/src/2022/source.extension.cs:
--------------------------------------------------------------------------------
1 | // ------------------------------------------------------------------------------
2 | //
3 | // This file was generated by VSIX Synchronizer
4 | //
5 | // ------------------------------------------------------------------------------
6 | namespace ExtensibilityEssentials
7 | {
8 | internal sealed partial class Vsix
9 | {
10 | public const string Id = "4c38fd13-e407-4da6-a7b2-a04346af8943";
11 | public const string Name = "Extensibility Essentials 2022";
12 | public const string Description = @"A collection of extensions that makes it much easier to write Visual Studio extensions";
13 | public const string Language = "en-US";
14 | public const string Version = "1.1.999";
15 | public const string Author = "Mads Kristensen";
16 | public const string Tags = "vsix, vsx, extensibility";
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/2022/source.extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Extensibility Essentials 2022
6 | A collection of extensions that makes it much easier to write Visual Studio extensions
7 | https://github.com/VsixCommunity/ExtensibilityEssentials
8 | Resources\LICENSE
9 | Resources\Icon.png
10 | Resources\Icon.png
11 | vsix, vsx, extensibility
12 |
13 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/Shared/ExtensibilityEssentialsPackage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Threading;
4 | using Community.VisualStudio.Toolkit;
5 | using EnvDTE;
6 | using Microsoft.VisualStudio;
7 | using Microsoft.VisualStudio.Shell;
8 | using Microsoft.VisualStudio.Shell.Interop;
9 | using Task = System.Threading.Tasks.Task;
10 |
11 | namespace ExtensibilityEssentials
12 | {
13 | [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
14 | [InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
15 | [ProvideAutoLoad("07ce51b0-5439-4c81-bbc6-dc629f343357", flags: PackageAutoLoadFlags.BackgroundLoad)]
16 | [ProvideUIContextRule("07ce51b0-5439-4c81-bbc6-dc629f343357",
17 | name: "autoload",
18 | expression: "vsix & building",
19 | termNames: new[] { "vsix", "building" },
20 | termValues: new[] { "SolutionHasProjectFlavor:" + ProjectTypes.EXTENSIBILITY, VSConstants.UICONTEXT.SolutionBuilding_string })]
21 | public sealed partial class ExtensibilityEssentialsPackage : ToolkitPackage
22 | {
23 | protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress progress)
24 | {
25 | await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
26 |
27 | VS.Events!.SolutionEvents!.Opened += OnSolutionOpened;
28 | VS.Events!.SolutionEvents!.ProjectAdded += ApplyBuildPropertyToProject;
29 |
30 | IVsSolution _solution = await VS.Solution.GetSolutionAsync();
31 |
32 | if (_solution.IsOpen())
33 | {
34 | OnSolutionOpened();
35 | }
36 | }
37 |
38 | private void OnSolutionOpened()
39 | {
40 | JoinableTaskFactory.RunAsync(async delegate
41 | {
42 | await JoinableTaskFactory.SwitchToMainThreadAsync(DisposalToken);
43 | IEnumerable projects = await VS.Solution.GetAllProjectsInSolutionAsync();
44 |
45 | foreach (Project project in projects)
46 | {
47 | ApplyBuildPropertyToProject(project);
48 | }
49 | });
50 | }
51 |
52 | private void ApplyBuildPropertyToProject(Project project)
53 | {
54 | ThreadHelper.ThrowIfNotOnUIThread();
55 |
56 | if (project.IsKind(ProjectTypes.EXTENSIBILITY))
57 | {
58 | project.TrySetBuildPropertyAsync("ExtensibilityEssentialsInstalled", "true").FireAndForget();
59 | }
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/src/Shared/Shared.projitems:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 | true
6 | c5ab8fec-fd6f-4779-ac62-b4779dd38785
7 |
8 |
9 | Shared
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/Shared/Shared.shproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | c5ab8fec-fd6f-4779-ac62-b4779dd38785
5 | 14.0
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------