Build a web project with Microsoft .NET SDK:
turbo run microsoft/dotnet-sdk
(dotnet-sdk#72d227b8) C:\>dotnet new web -n TestWebApp -o %USERPROFILE%\Desktop\dotnet\TestWebApp
(dotnet-sdk#72d227b8) C:\>dotnet build %userprofile\desktop\dotnet\testwebapp
Launch a container with .NET Runtime and ASP.NET:
turbo run microsoft/dotnet-aspnet-runtime --using microsoft/dotnet-runtime --isolate=merge-user
Check version:
(dotnet-aspnet-runtime#74d116b9) C:\>dotnet --info
.NET SDK:
Version: 8.0.2
Run the web project:
(dotnet-aspnet-runtime#74d116b9) C:\>"%USERPROFILE%\Desktop\dotnet\TestWebApp\bin\Debug\net8.0\TestWebApp.exe"
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: C:\
Open a browser to the address http://localhost:5000/ to confirm the web application has started.
No release notes
This repository does not have an EULA
Actions