.NET 6.0 : स्थापित करें2023/09/21 |
.NET 6.0 स्थापित करें।
|
|
[1] | .NET 6.0 इंस्टॉल करें और हेलोवर्ल्ड सैंपल ऐप चलाएं। |
root@dlp:~#
root@dlp:~# apt -y install dotnet6 dotnet --version 6.0.108 # हैलो वर्ल्ड बनाने के लिए सत्यापित करें [root@dlp ~]# dotnet new console -o helloworld Welcome to .NET 6.0! --------------------- SDK Version: 6.0.108 ---------------- Installed an ASP.NET Core HTTPS development certificate. To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only). 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... Running 'dotnet restore' on /root/helloworld/helloworld.csproj... Determining projects to restore... Restored /root/helloworld/helloworld.csproj (in 104 ms). Restore succeeded.root@dlp:~# cd helloworld root@dlp:~/helloworld# dotnet run Hello, World! |
[2] | किसी भी सामान्य उपयोगकर्ता के साथ ASP.NET नमूना ऐप बनाने का प्रयास करें। |
ubuntu@dlp:~$ dotnet new razor -o asp.net Welcome to .NET 6.0! --------------------- SDK Version: 6.0.108 ---------------- Installed an ASP.NET Core HTTPS development certificate. To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only). 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" was created successfully. This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/6.0-third-party-notices for details. Processing post-creation actions... Running 'dotnet restore' on /home/ubuntu/asp.net/asp.net.csproj... Determining projects to restore... Restored /home/ubuntu/asp.net/asp.net.csproj (in 107 ms). Restore succeeded.ubuntu@dlp:~$ cd asp.net ubuntu@dlp:~/asp.net$ dotnet run --urls=http://10.0.0.30:5000/ warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] No XML encryptor configured. Key {87615e9c-d2a1-4575-90cf-50c2de7ae374} 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/ |
किसी भी क्लाइंट कंप्यूटर से आपके द्वारा सेट किए गए यूआरएल तक पहुंच, और फिर यदि निम्न साइट दिखाई जाती है तो यह ठीक है। |
![]() |
Sponsored Link |