
Now I can import and use the module as usual ĭon’t part with your illusions.In past blog posts, I have explained about deploying Azure Function Apps through the portal and through Azure DevOps. root/.dotnet/tools/pwshĬopyright (c) Microsoft Corporation.

Powershell Core (6.2.2 is the latest stable version at this time) is already installed under /root/.dotnet/tools/, I can just run pwsh to start it: find. The first time I’m opening the folder in a container I must choose a starting point, so for my test I’m going to use C# (.NET Core Latest) choose container starting point C# (.NET Core Latest)īy the way, there is a container for just Powershell, if you want to play with it: container powershell I’m going to use the same binary Powershell module I showed in my previous post, so I’m going to use the command Remote-Containers: Open folder in container… from the Command Palette. You’ll have to create an account on Docker Hub if you don’t already have one, then install Docker Desktop docker desktop for windows Of course, Docker must be installed first (VSCode will remind you if it’s not 😅): docker required I want to use a container on my development machine: connect to remote The extension pack allows to choose between Windows Substrate for Linux, connect to a remote machine through SSH or run a Docker container on my machine. Also, take a look at Developing Inside a Container in the official VSCode documentation. Note: this requires Visual Studio Code Insiders at this time pay attention to the Installation notes for good tips to get started. NET Core, Powershell Core, Visual Studio Code and anything else required) or use the Remote Development extension pack for Visual Studio Code and use Docker containers instead.

One easy solution is to spin up a virtual machine, install the tools I need (. But what if I want to actually write and test my script/module on Linux (assuming my main machine is Windows, of course 😉)?

NET Core and Powershell Core is being cross-platform, be able to develop applications (or Powershell scripts and modules) that can be executed on Windows, Linux and macOS but how can we be sure the our application or script/module will actually run properly across all those platforms and distros? Talking about Powershell, PSScriptAnalyzer helps to check a script or function compatibility with certain Powershell versions or different platforms. One of the promises (maybe, the biggest promise) of.
