.NET

💡 AnduinOS verifizierte App – Open Source

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

.NET ist eine kostenlose, plattformübergreifende Open-Source-Entwicklerplattform zum Erstellen vieler verschiedener Anwendungstypen.

Erstens. Fügen Sie das .NET Backports-Repository hinzu (falls zutreffend).

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

Um .NET 10 auf AnduinOS zu installieren, können Sie Folgendes ausführen:

sudo apt update
sudo apt install dotnet10

Um .NET 9 auf AnduinOS zu installieren, können Sie Folgendes ausführen:

sudo apt update
sudo apt install dotnet9

Um .NET 8 auf AnduinOS zu installieren, können Sie Folgendes ausführen:

sudo apt update
sudo apt install dotnet8

Das war's. Sie können nun .NET auf AnduinOS verwenden.

mkdir myapp
cd myapp
dotnet new console
dotnet run

.NET-Globaltools

Möglicherweise müssen Sie einige globale Tools installieren, um Ihre Entwicklung zu unterstützen. Sie können sie mit dem folgenden Befehl installieren:

# 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"
Kommentare (0)

Noch keine Kommentare. Sei der Erste, der einen hinterlässt!