Skip to Main Content
Learn PowerShell Core 6.0
book

Learn PowerShell Core 6.0

by David das Neves, Jan-Hendrik Peters
July 2018
Beginner content levelBeginner
552 pages
13h 18m
English
Packt Publishing
Content preview from Learn PowerShell Core 6.0

Bringing it all together

With all the components introduced, we can use the template structure for our module development:

  • ModuleName\Public
    • Contains all publicly visible module functions
    • Each function is in a separate script, called NameOfFunction.ps1
  • ModuleName\Private
    • Contains all internally visible functions
    • Each function is in a separate script, called NameOfFunction.ps1
  • ModuleName\Types
    • Contains all .NET/PowerShell classes the module requires
  • ModuleName\ModuleName.psm1
    • Your script module
  • ModuleName\ModuleName.psd1
    • Your module manifest
  • Test
    • Contains all unit and integration tests to execute, possibly sorted into subfolders
    • Usually one *.Test.ps1 file per function
  • ModuleName.psdeploy.ps1
  • appveyor.yml
  • build.ps1
  • psake.ps1 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PowerShell and WMI

PowerShell and WMI

Richard Siddaway

Publisher Resources

ISBN: 9781788838986Supplemental Content