Search code examples
.netgoogle-apigmail.net-coregoogle-api-dotnet-client

Google API with .NET Core application


I want to add gmail connectivity to my .NET Core application. I'm looking at the nuget package

Google.Apis.Gmail.v1 Client Library

There is mention of .NET Standard 1.3 support, but no mention of .NET Core either in Supported Platforms or Incompatible Platforms. Confused...

Thanks


Solution

  • Yes, all Google.Apis.* nuget packages, including Google.Apis.Gmail.v1, support .NET Core.

    If you look at this ".NET platforms support" table, you can see that .NET Core 1.0 implements netstandard1.3 (among others). So the netstandard1.3 support in the Google libraries provides support for .NET Core applications.

    So, for example, you can build:

    • a .NET Core console app (e.g. targeting netcoreapp1.0)
    • an ASP.NET Core application; but note that we don't currently provide simple authentication mechanisms for ASP.NET Core. This be being tracked in github issue #933.