Analyze the .csproj file to determine the .NET version.
Select appropriate base images for build and runtime stages based on .NET version and Linux distribution.
Create a multi-stage Dockerfile.
Configure environment variables, ports, and file system settings.
Add necessary system packages and dependencies.
Create or update the .dockerignore file.
Generate the Dockerfile and .dockerignore files.