Reputation: 2250
I can't find the class StoredProfileAWSCredentials. I've got AWSSDK.Core and AWSSDK.APIGateway added via NuGet in Visual Studio 2015 (both are v3). I'm trying to new up an instance of StoredProfileAWSCredentials so that I can specify the credential I'm looking for (as defined in my credentials file). From the docs, this class is in the "Amazon.Runtime" namespace, and I'm doing a "using Amazon.Runtime;". But the compiler keeps telling me that the class doesn't exist.
If I type the fully qualified name to browse the list, starting with Amazon.Runtime and filtering by the word "credentials", I see its parent class, AWSCredentials, but I can't find the actual class, StoredProfileAWSCredentials.
There must be something super obvious that I'm missing here, where does this class exist and what do I need to do to access it?
UPDATE: I have the following packages added via NuGet: AWSSDK.APIGateway v3.3.4 and AWSSDK.Core v3.3.7.1.
Upvotes: 1
Views: 698
Reputation: 11862
Its In the Amazon.Runtime.StoredProfileAWSCredentials
. The assembly is in ASWSDK.Core.DLL
.
I've used it in conjunction with the S3 sdk. That seems to work. Based on what I understand about the docs. Apparently, Core is bundled with other assemblies when ref'd for a specific reason.
After looking at the source I found that it does live in the Core assembly.
Nuget acts weird sometimes. Perhaps you should try uninstalling and re-installing the nuget lib. Also, could you tell me exactly what is the nuget package name and version?
You should not have to install both the core and the APIGateway. Try Just installing the 1 package AWSSDK.APIGateway v3.3.4 and let the dependency management handle the core.
Upvotes: 1