This add-on integrates Dotnet into your DDEV project.
ddev add-on get FreelyGive/ddev-dotnet
ddev restart
After installation, make sure to commit the .ddev directory to version control.
| Command | Description | 
|---|---|
ddev dotnet | 
      Run dotnet commands in your web container. | 
To change the Docker image:
ddev dotenv set .ddev/.env.web --dotnet-docker-image="mcr.microsoft.com/dotnet/sdk:6.0"
ddev add-on get FreelyGive/ddev-dotnet
ddev restart
Make sure to commit the .ddev/.env.web file to version control.
All customization options (use with caution):
| Variable | Flag | Default | 
|---|---|---|
DOTNET_DOCKER_IMAGE | 
      --dotnet-docker-image | 
      mcr.microsoft.com/dotnet/sdk:9.0 | 
    
DOTNET_ENVIRONMENT | 
      --dotnet-environment | 
      Development | 
    
Contributed and maintained by @FreelyGive