This sample is created from the REST client tutorial for learning C# features. Please see that topic for detailed steps on the code for this sample.
This sample demonstrates making HTTP requests to a web server, using async
and await
, converting JSON objects into C# objects, and terminal output.
upgrade SDK to .NET Core 2.2 if you have not done so https://dotnet.microsoft.com/download/dotnet-core/2.2 by downloading (double click) on .NET Core Installer link else it won't open project in visual studio 2017
To build and run the sample, type the following commands:
-
open command window from window start
-
go to root installation
-
dotnet restore
-
dotnet run
dotnet restore
restores the dependencies for this sample.
dotnet run
builds the sample and runs the output assembly.
[!INCLUDEDotNet Restore Note]