.NET

💡 Application vérifiée AnduinOS - Open Source

.NET is an AnduinOS verified app and it runs awesome on AnduinOS, with easy installation and automatic updates.

.NET est une plateforme de développement gratuite, multiplateforme et open source pour créer de nombreux types d’applications différents.

Premièrement. Ajoutez le référentiel des rétroportages .NET (le cas échéant).

if [[ "$(lsb_release -sc)" =~ ^(devel|jammy|noble)$ ]]; then
  sudo add-apt-repository ppa:dotnet/backports
fi

Pour installer .NET 10 sur AnduinOS, vous pouvez exécuter :

sudo apt update
sudo apt install dotnet10

Pour installer .NET 9 sur AnduinOS, vous pouvez exécuter :

sudo apt update
sudo apt install dotnet9

Pour installer .NET 8 sur AnduinOS, vous pouvez exécuter :

sudo apt update
sudo apt install dotnet8

C'est tout. Vous pouvez désormais commencer à utiliser .NET sur AnduinOS.

mkdir myapp
cd myapp
dotnet new console
dotnet run

Outils globaux .NET

Il se peut que vous ayez besoin d'installer certains outils globaux pour vous aider dans votre développement. Vous pouvez les installer à l'aide de la commande suivante :

# Dotnet tools
function TryInstallDotnetTool {
  toolName=$1
  globalTools=$(dotnet tool list --global)

  if [[ $globalTools =~ $toolName ]]; then
    echo "$toolName is already installed. Updating it.." 
    dotnet tool update --global $toolName --interactive
  else
    echo "$toolName is not installed. Installing it.."
    if ! dotnet tool install --global $toolName --interactive ; then
      echo "$toolName failed to be installed. Trying updating it.."
      dotnet tool update --global $toolName --interactive
    fi
  fi
}

TryInstallDotnetTool "dotnet-ef"
TryInstallDotnetTool "Aiursoft.Static"
Commentaires (0)

Aucun commentaire pour le moment. Soyez le premier à en laisser un !