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
dotnet
CLI
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.exe
with extension .json file → creates a .pkgdef file -
In VS 2022 create new Empty VSIX Project
a. This is done programmatically with the
vsix
template fordotnet new
-
Add converted .pkgdef file(s)
-
Edit the properties of the .pkgdef file:
a. Set
Copy to Output Directory
toCopy always
.b. Set
Include in VSIX
totrue
.c. Open the
source.extension.vsixmanifest
file, then select Assets, select New.d. Set
Type
toMicrosoft.VisualStudio.VsPackage
, andSource
toFile 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