Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tintoy/ps-core-module-template

"dotnet new" template for a binary PowerShell Core module
https://github.com/tintoy/ps-core-module-template

dotnet-template powershell powershell-core

Last synced: 5 days ago
JSON representation

"dotnet new" template for a binary PowerShell Core module

Awesome Lists containing this project

README

        

# 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

1. `dotnet new -i FiftyProtons.Templates.PSCore`
2. `mkdir MyModule; cd MyModule`
3. `dotnet new ps-core-module`
4. `dotnet restore`
5. `dotnet publish -c release -o $PWD/bin/release`
6. `powershell`
7. `Import-Module ./bin/release/MyModule.dll`
8. `Get-Greeting -Name 'PowerShell'`

## Building

1. `dotnet restore`
2. `dotnet pack`
3. And to use locally-built templates: `dotnet new -i src/Templates.PSCore/content`