PowerToysRun Plugin Dotnet Template
February 11, 2025 · View on GitHub
This is a dotnet template for creating a PowerToys Run plugin.
How to customize
Steps
- Clone or fork the repo.
- Make your desired change (like changing
indent_styleandend_of_linein.editorconfig). - Run
dotnet new install .insrcdirectory.
How to use
Prerequisite
- gsudo
Or if you're using Windows later than Windows 11 24H2, changesudo {...}indebug.ps1tosudo powershell {...}.
Usage
- Clone the repo
- Run
dotnet new install .insrcdirectory. - Create new project with
dotnet new ptrun -o <projectName> -pa <author> - Follow TODOs in
Main.cs.
Scripts
debug.ps1- move debug files to destination.release.ps1- create release on github with github cli.
How to debug
- Build the project.
- Run
debug.ps1. - Attach to the process
PowerToys.PowerLauncher.
Demo
Check ProcessKiller.
Template structure
MyPlugin
│ MyPlugin.sln
└───MyPlugin
│ debug.ps1
│ .editorconfig
│ MyPlugin.csproj
│ Main.cs
│ plugin.json
│ release.ps1
├───Images
│ Icon.dark.png
│ Icon.light.png
└───Properties
Resources.Designer.cs
Resources.resx
Help improve this template
If you have any suggestions or improvements, feel free to open an issue or a pull request.