C# – First steps with C# and .NET – part 023 .
In this tutorial, I will show you how to use C # with Google A.P.I. on Linux. You will need to set an authentication key in your google account, see the credentials page. I used Fedora Linux to install the NuGet command:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | [root@desk mythcat]# dnf install nuget Last metadata expiration check: 1:18:10 ago on Sat 06 Feb 2021 10:32:19 PM EET. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: nuget x86_64 2.8.7-11.fc33 fedora 419 k Transaction Summary ================================================================================ Install 1 Package Total download size: 419 k Installed size: 1.6 M Is this ok [y/N]: y ... Installed: nuget-2.8.7-11.fc33.x86_64 Complete! |
Use this command to install it:
1 2 3 4 5 6 7 8 9 10 11 12 13 | [mythcat@desk CSharpProjects]$ nuget install Google.Apis.Discovery.v1 Attempting to resolve dependency 'Google.Apis (= 1.10.0)'. Attempting to resolve dependency 'Google.Apis.Core (≥ 1.10.0)'. Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.1.10)'. Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.14)'. Attempting to resolve dependency 'Microsoft.Bcl.Async (≥ 1.0.168)'. Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.21)'. Attempting to resolve dependency 'Microsoft.Net.Http (≥ 2.2.29)'. Attempting to resolve dependency 'Newtonsoft.Json (≥ 7.0.1)'. Attempting to resolve dependency 'Zlib.Portable.Signed (≥ 1.11.0)'. Attempting to resolve dependency 'log4net (≥ 2.0.3)'. Attempting to resolve dependency 'Google.Apis (≥ 1.49.0)'. 'Google.Apis' already has a dependency defined for 'Google.Apis.Core'. |
Create a basic C# project… Read More »