ps-core-module-template
ps-core-module-template copied to clipboard
"dotnet new" template for a binary PowerShell Core module
ps-binary-module-template
A dotnet new template that creates a project for a binary PowerShell module.
Targets PowerShell Core v6.0.0 or higher.
Getting started
dotnet new -i FiftyProtons.Templates.PSCoremkdir MyModule; cd MyModuledotnet new ps-core-moduledotnet restoredotnet publish -c release -o $PWD/bin/releasepowershellImport-Module ./bin/release/MyModule.dllGet-Greeting -Name 'PowerShell'
Building
dotnet restoredotnet pack- And to use locally-built templates:
dotnet new -i src/Templates.PSCore/content