Community.PowerToys.Run.Plugin.Templates 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet new install Community.PowerToys.Run.Plugin.Templates::0.2.0                
This package contains a .NET Template Package you can call from the shell/command line.

Community.PowerToys.Run.Plugin.Templates

build Community.PowerToys.Run.Plugin.Templates

These dotnet new templates simplify creating PowerToys Run plugin projects and solutions.

dotnet new list PowerToys

Installation

Install:

dotnet new install Community.PowerToys.Run.Plugin.Templates

Update installed templates:

dotnet new update

Uninstall:

dotnet new uninstall Community.PowerToys.Run.Plugin.Templates

Usage

Help:

dotnet new ptrun-sln --help
dotnet new ptrun-proj --help
dotnet new ptrun-scripts --help

Create a solution in the output directory MyPlugin:

dotnet new ptrun-sln -o MyPlugin

Create a directory and then a solution:

mkdir MyPlugin
cd MyPlugin
dotnet new ptrun-sln

Create a project in the output directory Community.PowerToys.Run.Plugin.MyPlugin:

dotnet new ptrun-proj -o Community.PowerToys.Run.Plugin.MyPlugin

Plugin author:

dotnet new ptrun-sln --plugin-author octocat

Create scripts in the current directory:

dotnet new ptrun-scripts

Visual Studio:

Visual Studio - Create a new project

Output

With ptrun-sln:

MyPlugin
|   MyPlugin.sln
|   
+---Community.PowerToys.Run.Plugin.MyPlugin
|   |   Community.PowerToys.Run.Plugin.MyPlugin.csproj
|   |   Main.cs
|   |   plugin.json
|   |   
|   \---Images
|           myplugin.dark.png
|           myplugin.light.png
|           
\---Community.PowerToys.Run.Plugin.MyPlugin.UnitTests
        Community.PowerToys.Run.Plugin.MyPlugin.UnitTests.csproj
        MainTests.cs

Visual Studio

With ptrun-proj:

Community.PowerToys.Run.Plugin.MyPlugin
|   Community.PowerToys.Run.Plugin.MyPlugin.csproj
|   Main.cs
|   plugin.json
|   
\---Images
        myplugin.dark.png
        myplugin.light.png

With ptrun-scripts:

Community.PowerToys.Run.Plugin.MyPlugin
|   deploy.ps1
|   pack.ps1
|   releasenotes.ps1

Disclaimer

These are not official Microsoft PowerToys templates.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.0 94 12/17/2024
0.2.0 134 11/21/2024
0.1.0 215 7/25/2024

- Fix: Build fails from command line
- New: dotnet new ptrun-scripts
- Change target framework to net8.0-windows10.0.22621.0
- Bump Community.PowerToys.Run.Plugin.Dependencies to 0.86.0