.Net is an open source development platform from Microsoft that enables developers to build multi-platform applications from a single codebase.
In this tutorial we demonstrate how easy it is to start working with .Net on Ubuntu WSL by creating a simple chatbot accessible from your Windows host. We also take advantage of WSL’s new systemd support to run our bot as a systemd service for easier deployment.
- A PC running Windows 11
- The latest version of the WSL Windows Store application
- Ubuntu, Ubuntu 22.04 LTS or Ubuntu Preview installed
Systemd support is a new feature of WSL and only available on WSL version XX or higher.
You can check your current WSL version by running:
> wsl -- version
In your powership terminal.
To enable systemd on your Ubuntu distribution you need to add the following content to /etc/wsl.conf:
Make sure to restart your distribution after you have made this change.