Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Outline

Generators

This directory contains (template based) generators that allow end-users to easily generate new Powershell Modules following ModuleBuilder best practices and thus:

  • folder structure
  • default settings

Dotnet

After cloning this repository (and assuming you have the dotnet SDK installed), you can install the ModuleBuilder templates from this folder by running:

dotnet new -i ./

We need to publish this to nuget to make installing it easier.

Once you've installed the template(s), you can use the PSModuleBuilder template to generate a new module in an empty folder using:

dotnet new PSModuleBuilder

Or you can create the module folder with -o and set the module author, company and description like this:

dotnet new PSModuleBuilder -o MyNewModule --author Jaykul --company PoshCode.org --description "My Brand New Module"

Even better, you can create some defaults for yourself using the alias option:

dotnet new -a psmo psmodulebuilder --author Jaykul --company PoshCode.org

And then create a new module like this:

dotnet new psmo -o MyNewModule --description "My Brand New Module"
Morty Proxy This is a proxified and sanitized view of the page, visit original site.