Apologies if this is the wrong place to ask.
When/will there be support for DNX Core 5.0 .NET Core 1.0?
Any update on this?
It's definitely something we're interested in, but no firm plans/timescales yet I'm afraid.
I was just about to ask you on Twitter Jon 馃槃
Using imports in project.json, I am able to restore the packages. However, it looks like one of the blockers now is ServiceAccountCredential. Any idea why that is not available on .NETStandard?
This would allow to run the code under Windows, OS X and Linux (.NET Core => multiplatform vs .NET Framework => Windows only).
Can these libraries be used in a .NET Core application yet? I'm also having trouble getting ServiceAccountCredential to work correctly in the following snippet.
ServiceAccountCredential sCredential = new ServiceAccountCredential(
new ServiceAccountCredential.Initializer("[email protected]")
{
Scopes = new[]
{
CalendarService.Scope.Calendar,
},
User = "[email protected]"
}.FromCertificate(certificate));
It looks like the closest match is ServiceCredential, however just swapping ServiceCredential for ServiceAccountCredential does not work, either. Any help is appreciated.
No, they can't - at least not in any released Nuget packages. I _think_ we're hoping to get netstandard1.3 support into the next release (so 1.15) but Chris may be able to correct me.
@ipoley
ServiceAccountCredential does not work because package uses Windows-specific API's to parse the certificate (FromCertificate). This has to be implemented cross-platform first to get API calls with service accounts working.
Yes, we hope to get netstandard1.x support into 1.15, which will add support .NET core; we don't have a firm date for this. ServiceAccountCredential will almost certainly be supported.
The 1.14 libraries do not support .NET core.
The .NET core work is being done the in netcore branch in this repo.
v1.15.0 has just been released which adds a netstandard1.3 target to all Google.Apis.* packages :)
Please open new issues if you experience any problems when using these libraries on .NET Core.
@chrisdunelm seems like ServiceAccountCredential is still not ported. Is that true?
@henkmollema You are correct, ServiceAccountCredential is not available in netstandard/NETCore.
This is because it uses cryptographic classes (E.g. RSACryptoServiceProvider) that are not available on some netstandard platforms (e.g. Linux). See #758 for more details.
@chrisdunelm I see. I also just opened an issue: #797. You can close it if you consider it a duplicate of #758.
Most helpful comment
No, they can't - at least not in any released Nuget packages. I _think_ we're hoping to get netstandard1.3 support into the next release (so 1.15) but Chris may be able to correct me.