.NET
💡 AnduinOS सत्यापित ऐप - ओपन सोर्स
.NET is an AnduinOS verified app and it runs awesome on AnduinOS, with easy installation and automatic updates.
.NET एक मुफ़्त, क्रॉस-प्लेटफ़ॉर्म, ओपन सोर्स डेवलपर प्लेटफ़ॉर्म है जो कई अलग-अलग प्रकार के एप्लिकेशन बनाने के लिए उपयोग किया जाता है।
सबसे पहले. .NET बैकपोर्ट्स रेपोज़िटरी जोड़ें (यदि लागू हो)।
if [[ "$(lsb_release -sc)" =~ ^(devel|jammy|noble)$ ]]; then
sudo add-apt-repository ppa:dotnet/backports
fi
AnduinOS पर .NET 10 इंस्टॉल करने के लिए, आप निम्न चला सकते हैं:
sudo apt update
sudo apt install dotnet10
AnduinOS पर .NET 9 स्थापित करने के लिए, आप निम्नलिखित चला सकते हैं:
sudo apt update
sudo apt install dotnet9
AnduinOS पर .NET 8 इंस्टॉल करने के लिए, आप निम्नलिखित चला सकते हैं:
sudo apt update
sudo apt install dotnet8
बस इतना ही। अब आप AnduinOS पर .NET का उपयोग शुरू कर सकते हैं।
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)
अभी तक कोई टिप्पणी नहीं। पहली टिप्पणी करने वाले आप बनें!