Dotnet is a software framework developed by Microsoft that runs primarily on Microsoft Windows. It includes a large class library named Framework Class Library (FCL) and provides language interoperability (each language can use code written in other languages) across several programming languages.
- Supported versions
- Legacy versions
- Patch versions
- Additional Reading
You can still run these versions with Lando but for all intents and purposes they should be considered deprecated eg YMMV and do not expect a ton of support if you have an issue.
Here are the configuration options, set to the default values, for this service. If you are unsure about where this goes or what this means we highly recommend scanning the services documentation to get a good handle on how the magicks work.
services: my-service: type: dotnet:2.0 ssl: false command: tail -f /dev/null port: 80
Note that if you do not define a
command for this service it will effectively be a "cli" container eg it will not serve or run an application by default but will be available to run
dotnet commands against.
If you want to actually launch a
dotnet application consider setting the
command to something like
services: my-service: type: dotnet command: dotnet run
Also note that
ssl: true will only generate certs in the default locations and expose port
443. It is up to user to use the certs and secure port correctly in their application like as in this article.
While we assume your
dotnet service is running on port
80 we recognize that many
dotnet app's also run on port
8888 or otherwise. You can easily change our default to match whatever your app needs.
services: my-service: type: dotnet port: 8888
If you are interested in a working example of this service that we test on every Lando build then check out https://github.com/lando/lando/tree/master/examples/dotnet
- Updating your Landofiles to 3.0.0-rc.2+
- Accessing Your Services Externally
- Accessing Lando from Other Devices
- Exporting Databases
- Importing Databases
- Killer D8 Workflow with Platform.sh
- Lando + PhpStorm + Xdebug
- Offline Development
- Using $LANDO_INFO
- Using NodeJS Frontend Tooling
- Using Lando in Visual Studio Code
- Climbing a mountain for love
- SSH Keys
- Shared Files
- Global Config
- DNS Rebinding Protection
- File Uploads on Windows
- File Syncing Stalled
- Running VB and HyperV
- Running behind a proxy
- Switching Database Config