This is a template for Visual Studio to create a PowerToys Run plugin.
- Download the latest release.
- Move the zip to
~\Documents\Visual Studio 2022\Templates\ProjectTemplates
. - Open Visual Studio 2022 and select the template named
PowerToys Run Plugin Template
. - Copy
.dll
from the PowerToys Run folder to.\Lib
(using symlink or runningcopyLib.ps1
is recommended).PowerToys.Common.UI.dll
PowerToys.ManagedCommon.dll
PowerToys.Settings.UI.Lib.dll
Wox.Infrastructure.dll
Wox.Plugin.dll
- Right-click on
Properties\Resources.resx
and selectRun Custom Tool
(Resources.Designer.cs
changes completely for unknown reasons). - Follow TODOs in
Main.cs
.
- Build the project.
- Run
debug.ps1
. - Attach to the process
PowerToys.PowerLauncher
.
Visual Studio 2022 caches the templates, so you can't simply replace the zip file.
- Remove previous versions of the template.
- Start Visual Studio 2022 then select
Create a new project
, this loads the templates. - Close Visual Studio 2022.
- Move the new zip to
~\Documents\Visual Studio 2022\Templates\ProjectTemplates
.
If you have any suggestions or improvements, feel free to open an issue or a pull request.