Skip to content

Instantly share code, notes, and snippets.

@martinandersen3d
Created February 11, 2020 20:43
Show Gist options
  • Save martinandersen3d/0f8356b61805356238a64e2857d9629e to your computer and use it in GitHub Desktop.
Save martinandersen3d/0f8356b61805356238a64e2857d9629e to your computer and use it in GitHub Desktop.
Backup Visual Studio Extensions names Powershell
---BACKUP VISUAL STUDIO EXTENSIONS---
C:\Users\Martin\AppData\Local\Microsoft\VisualStudio\
-------------------------------------
AutoToString.dll
Davide Lettieri
AutoToString
https://github.com/davidelettieri/auto-tostring
-------------------------------------
Elders.VSE_FormatDocumentOnSave.pkgdef
Elders
Format document on Save
-------------------------------------
VisualCommander.dll
VisualCommander.pkgdef
Vlasov Studio
Visual Commander
https://vlasovstudio.com/visual-commander/
-------------------------------------
OpenInVsCode.pkgdef
majian
Open In Visual Studio Code
https://github.com/majian159/OpenInVSCode
-------------------------------------
SteveCadwallader.CodeMaid.pkgdef
Steve Cadwallader
CodeMaid
http://www.codemaid.net/
-------------------------------------
CopyWithLocation2.pkgdef
Alex Dresko
CopyWithLocation2
-------------------------------------
PeasyMotion.pkgdef
PeasyMotion.dll
Maksim Vorobiev
PeasyMotion
-------------------------------------
QuickDiagramTool.pkgdef
Codartis
Quick Diagram Tool for C#
https://github.com/realvizu/QuickDiagram
-------------------------------------
Scratchpad.pkgdef
David Watson
Scratchpad
-------------------------------------
MultiLineSearch.pkgdef
Helixoft
Multiline Search and Replace
http://visualstudiogallery.msdn.microsoft.com/699CE302-B0D4-4083-BE0E-1682E873CEBF
-------------------------------------
|%CurrentProject%;PkgdefProjectOutputGroup|
SnippetDesigner.dll
Matthew Manela
Snippet Designer
https://github.com/mmanela/SnippetDesigner
-------------------------------------
# find "extension.vsixmanifest" files
# $directory = "C:\Users\Martin\AppData\Local\Microsoft\VisualStudio\16.0_b91ee7f2\Extensions"
$directory = "$($env:LOCALAPPDATA)\Microsoft\VisualStudio\"
Write-Output "---BACKUP VISUAL STUDIO EXTENSIONS---"
Write-Output $directory
Write-Output "-------------------------------------"
get-childitem $directory -recurse | where {$_.extension -eq ".vsixmanifest"} | % {
$XMLfile = $_.FullName
[XML]$content = Get-Content $XMLfile
Write-Output $content.PackageManifest.Assets.Asset | %{$_.Path} | select-object -unique
Write-Output $content.PackageManifest.Metadata.Identity | %{$_.Publisher} | select-object -unique
Write-Output $content.PackageManifest.Metadata | %{$_.DisplayName} | select-object -unique
Write-Output $content.PackageManifest.Metadata | %{$_.MoreInfo} | select-object -unique
Write-Output "-------------------------------------"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment