

The Build.ps1 file is a PSake script that contains the tasks: Init, Clean, Build, Test, PrePublish, Publish and PostPublish. Note: the publish step in the examples directory runs Publish-Module with –WhatIf so no publishing actually takes place. There are two files that do the work of building a Release directory and copying over the module files and directories to be published, then running Pester tests and finally publishing the module. The module files consist primarily of SampleModule.psd1, SampleModule.psm1, ReleaseNotes.md and the about topic file en-US\about_. The “examples” directory that comes with the PowerShell extension has been updated to add a sample module implementation consisting of the following files: If you already have Visual Studio Code and the PowerShell extension, make sure you have updated both to their latest versions – currently 0.10.10 for VS Code and 0.5.0 for the PowerShell extension.

If you haven’t already got Visual Studio Code and the PowerShell extension, see my blog post on Getting Started with Visual Studio Code. In today’s release of the PowerShell extension for VSCode (version 0.5.0), we have included an example of how this might work in a future release which I’ll discuss at length in this blog post.
#Setting up powershell in visual studio for mac preview how to#
We are noodling around with how to best provide support for publishing modules to the PowerShell Gallery from a PowerShell workspace within Visual Studio Code.
