![]() ![]() ![]() To test this change, we close the terminal and restart Ubuntu. Since we work mostly with Powershell in Ubuntu, we change the our default shell to Powershell: chsh -s /usr/bin/pwsh These steps can be found in "Installing PowerShell Core on Linux". Then we update the package management system: sudo apt-get updateĪnd finally we install the powershell package: sudo apt-get install -y powershellįinally we can test it with the command: pwsh Then we register the Microsoft repository GPG keys: sudo dpkg -i b We download the Microsoft repository GPG keys: wget -q Since Ubuntu from the Microsoft Store is the latest version with long-term support, we have to install the build for Ubuntu 18.04. The next step is to install Powershell Core in Ubuntu. A detailed description can be found in "Windows Subsystem for Linux Installation Guide for Windows 10". On the first use it will be initialized and you have to define a username and password. ![]() You can test it if you type ubuntu into a Integrated Terminal in VSCode. I used Ubuntu since it’s easy to install Powershell Core on it. Then you have to install a Linux distribution that uses the WLS from the Microsoft Store. The Linux Subsystem and Ubuntuįirst you have to enable the WSL, which can be done using this short Powershell command: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux You install Ubuntu, Powershell, configure the environment and finally install Dotnet Core. The installation is not that complicated. But anyway i tested the Windows Linux Subsystem (WLS) and it’s pretty good! Installation You could use a continous integration service like AppVeyor which does not allow to debug if the test fails.Īnother option would be Docker. ![]() You could setup a virtual machine, which is a litte time consuming and cumbersome. Since Powershell Core supports Linux, you might want to test your Powershell Module if it works on Linux as it works on Windows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |