Ubuntu 26.04

.NET 10.0 : Install2026/06/17

 

Install .NET.

[1] Install .NET 10.0 and run helloworld sample app.
root@dlp:~#
apt -y install dotnet-sdk-10.0 build-essential
root@dlp:~#
dotnet --version

10.0.109

# verify to create Hello World

root@dlp:~#
dotnet new console -o helloworld


Welcome to .NET 10.0!
---------------------
SDK Version: 10.0.109

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, run 'dotnet dev-certs https --trust'
Learn about HTTPS: https://aka.ms/dotnet-https

----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
The template "Console App" was created successfully.

Processing post-creation actions...
Restoring /root/helloworld/helloworld.csproj:
Restore succeeded.

root@dlp:~#
cd helloworld

root@dlp:~/helloworld#
dotnet run

Hello, World!
[2] Try to create ASP.NET sample app with any common user.
ubuntu@dlp:~$
dotnet new razor -o asp.net


Welcome to .NET 10.0!
---------------------
SDK Version: 10.0.109

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, run 'dotnet dev-certs https --trust'
Learn about HTTPS: https://aka.ms/dotnet-https

----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
The template "ASP.NET Core Web App (Razor Pages)" was created successfully.
This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/10.0-third-party-notices for details.

Processing post-creation actions...
Restoring /home/ubuntu/asp.net/asp.net.csproj:
Restore succeeded.

ubuntu@dlp:~$
cd asp.net

ubuntu@dlp:~/asp.net$
dotnet run --urls=http://10.0.0.30:5000

Using launch settings from /home/ubuntu/asp.net/Properties/launchSettings.json...
Building...
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
      No XML encryptor configured. Key {7baeb9a0-1c5d-476b-905a-c650e164aef3} may be persisted to storage in unencrypted form.
info: Microsoft.Hosting.Lifetime[14]
      Now listening on: http://10.0.0.30:5000
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
      Content root path: /home/ubuntu/asp.net
  Access to the URL you set from any client computer, and then that's OK if following site is shown.
Matched Content