Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
"dotnet new" template for a binary PowerShell Core module
- Host: GitHub
- URL: https://github.com/tintoy/ps-core-module-template
- Owner: tintoy
- License: mit
- Created: 2017-02-26T03:27:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-22T02:04:48.000Z (over 6 years ago)
- Last Synced: 2024-09-30T21:16:37.943Z (3 months ago)
- Topics: dotnet-template, powershell, powershell-core
- Language: C#
- Homepage:
- Size: 13.7 KB
- Stars: 21
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`