Saturday, February 22, 2020

C# .NET REST client


https://docs.microsoft.com/en-gb/dotnet/core/install/linux-package-manager-ubuntu-1910
https://docs.microsoft.com/en-gb/dotnet/core/install/linux-package-manager-centos7
https://docs.microsoft.com/en-gb/dotnet/core/install/linux-package-manager-rhel81

https://dotnet.microsoft.com/download
https://dotnet.microsoft.com/download/dotnet-core
https://dotnet.microsoft.com/platform/tools
https://code.visualstudio.com/Download


https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/intro

https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/create

wget -q https://packages.microsoft.com/config/ubuntu/19.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb


sudo apt-get update sudo apt-get install apt-transport-https sudo apt-get update sudo apt-get install dotnet-sdk-3.1
sudo apt-get install aspnetcore-runtime-3.1
sudo apt-get install dotnet-runtime-3.1

https://docs.microsoft.com/en-gb/dotnet/csharp/tutorials/intro-to-csharp/branches-and-loops-local


REST client

https://docs.microsoft.com/en-gb/dotnet/csharp/tutorials/console-webapiclient

This tutorial teaches you a number of features in .NET Core and the C# language. You’ll learn:
  • The basics of the .NET Core CLI.
  • An overview of C# Language features.
  • Managing dependencies with NuGet
  • HTTP Communications
  • Processing JSON information
  • Managing configuration with Attributes.


    cat /etc/lsb-release 
    wget -q https://packages.microsoft.com/config/ubuntu/19.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
   sudo dpkg -i packages-microsoft-prod.deb
   sudo apt-get update
   sudo apt-get install apt-transport-https
   sudo apt-get update
   sudo apt-get install dotnet-sdk-3.1
   sudo apt-get update
   sudo apt-get install apt-transport-https
   sudo apt-get update
   sudo apt-get install aspnetcore-runtime-3.1
   sudo apt-get install dotnet-runtime-3.1
   dotnet
   dotnet --info
   powershell --version
   dotnet --list-sdks
   dotnet --list-runtimes
   cd /home/learn/dotnet/HelloWorld
   dotnet new console -o myApp
   cd myApp
  
/home/learn/dotnet/HelloWorld/myApp# dotnet run
Hello World!
The current time is 2/22/2020 11:46:12 PM





No comments:

Post a Comment