Amazon AWSClientFactory does not exist

I created an empty .Net Core application and installed nuget packages for Amazon.Core and Amazon.S3.

Then I tried using S3 to get the object, but I got stuck at the very first moment ... Amazon.AWSClientFactory is nowhere to be found inside the assembly. Even with dotPeek, I tried to search for this factory method, but I could not find it. Even the sample code from Amazon does not work.

Where should I find this class?

+4
source share
2 answers

Amazon.Core and Amazon.S3 are part of the AWS SDK for .NET v3. To the AWS SDK for .NET Version 3 Migration Guide:

: AWSClientFactory

: AWSClientFactory

, , IAmazonS3 AmazonS3Client, naget Amazon.S3:

using (IAmazonS3 client = new AmazonS3Client())
{
  // do stuff
}

+4
. AWSClientFactory , , NuGet .

AWSClientFactory, Target Framework 4.5.2 NuGet, Target Framework 4.0 NuGet, AWSCLientFactory, , AmazonS3Client S3.

, .net , . : " , API ". .

0

Source: https://habr.com/ru/post/1675852/


All Articles