.NET

💡 แอปที่ตรวจสอบโดย AnduinOS - โอเพนซอร์ส

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

.NET เป็นแพลตฟอร์มสำหรับนักพัฒนาซอฟต์แวร์ที่ใช้งานฟรี ใช้งานได้ข้ามแพลตฟอร์ม และโอเพนซอร์ส สำหรับสร้างแอปพลิเคชันหลากหลายประเภท

ขั้นตอนแรก เพิ่มแหล่งเก็บข้อมูล (repository) backports ของ .NET (หากเกี่ยวข้อง)

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

เพื่อติดตั้ง .NET 10 บน AnduinOS คุณสามารถรันคำสั่ง:

sudo apt update
sudo apt install dotnet10

ในการติดตั้ง .NET 9 บน AnduinOS คุณสามารถรันคำสั่งต่อไปนี้ได้:

sudo apt update
sudo apt install dotnet9

เพื่อติดตั้ง .NET 8 บน AnduinOS คุณสามารถรันคำสั่ง:

sudo apt update
sudo apt install dotnet8

เสร็จสิ้น คุณสามารถเริ่มใช้ .NET บน AnduinOS ได้แล้ว

mkdir myapp
cd myapp
dotnet new console
dotnet run

เครื่องมือทั่วโลกของ .NET

คุณอาจจำเป็นต้องติดตั้งเครื่องมือระดับกลางบางตัวเพื่อช่วยในการพัฒนา คุณสามารถติดตั้งโดยใช้คำสั่งต่อไปนี้:

# 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"
ความคิดเห็น (0)

ยังไม่มีความคิดเห็น เป็นคนแรกที่จะแสดงความคิดเห็น!