DevPossible.PwshProject.Templates
0.1.0
dotnet new install DevPossible.PwshProject.Templates::0.1.0
This package contains a .NET Template Package you can call from the shell/command line.
DevPossible.PwshProject.Templates
Project templates for creating PowerShell-driven MSBuild projects.
Installation
dotnet new install DevPossible.PwshProject.Templates
Usage
Create a new PowerShell project
# Create with default settings
dotnet new psproj -n MyProject
# Create with specific framework
dotnet new psproj -n MyProject --Framework net9.0
# Create without sample scripts
dotnet new psproj -n MyProject --IncludeSampleScripts false
Build the project
cd MyProject
# Build (runs build.ps1)
dotnet build
# Build Release
dotnet build -c Release
# Clean (runs clean.ps1)
dotnet clean
# Publish (runs publish.ps1)
dotnet publish -c Release
Template Parameters
| Parameter | Default | Description |
|---|---|---|
--Framework |
net8.0 |
Target framework for output paths |
--SdkVersion |
1.0.0 |
SDK version to reference |
--IncludeSampleScripts |
true |
Include sample PS scripts |
What's Included
When you create a new project, you get:
MyProject/
├── MyProject.psproj # Project file
├── build.ps1 # Build script
├── clean.ps1 # Clean script
└── publish.ps1 # Publish script
How It Works
The project uses DevPossible.PwshProject.Sdk which:
- Intercepts MSBuild targets (Build, Clean, Publish)
- Exposes all MSBuild properties as
MBLD_*environment variables - Executes your PowerShell scripts with full access to build context
Uninstall
dotnet new uninstall DevPossible.PwshProject.Templates
License
MIT
-
.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.1.0 | 175 | 1/15/2026 |