This GitHub Action converts a Visual Studio Code (VS Code) theme to a theme that can be installed in Visual Studio.
The runner executing this Action needs to have the following tools installed:
- Git
- the
dotnetCLI
The steps that this action uses for converting a VS Code theme to a Visual Studio VSIX:
-
Clone ThemeConverter repo https://github.com/microsoft/theme-converter-for-vs
-
Build project
dotnet build ThemeConverter.csproj -
Run
bin\Debug\net6.0\ThemeConverter.exewith extension .json file → creates a .pkgdef file -
In VS 2022 create new Empty VSIX Project
a. This is done programmatically with the
vsixtemplate fordotnet new -
Add converted .pkgdef file(s)
-
Edit the properties of the .pkgdef file:
a. Set
Copy to Output DirectorytoCopy always.b. Set
Include in VSIXtotrue.c. Open the
source.extension.vsixmanifestfile, then select Assets, select New.d. Set
TypetoMicrosoft.VisualStudio.VsPackage, andSourcetoFile on filesystem.e. Select Browse and select the .pkgdef you added. Select OK.
f. Edit other fields in the vsixmanifest as desired (author, version, company, etc).
-
Build solution → VSIX is in output folder