The AWS SDK for .NET version 4 (V4) is in preview, therefore this content is subject to change. For information about breaking changes and migration, see the migration topic. For released content, see the version 3 developer guide instead.
When using the AWS SDK for .NET and .NET Standard 2.0
-
You need to obtain the AWS SDK for .NET assemblies and apply them to your project. For information about how to do this, see Download and extract ZIP files in the topic Obtaining AWSSDK assemblies.
-
You need to include the following DLLs in your Unity project alongside the DLLs for AWSSDK.Core and the other AWS services you're using. Starting with version 3.5.109 of the AWS SDK for .NET, the .NET Standard ZIP file contains these additional DLLs.
-
If you're using IL2CPP
to build your Unity project, you must add a link.xml
file to your Asset folder to prevent code stripping. Thelink.xml
file must list all of the AWSSDK assemblies you are using, and each must include thepreserve="all"
attribute. The following snippet shows an example of this file.<linker> <assembly fullname="AWSSDK.Core" preserve="all"/> <assembly fullname="AWSSDK.DynamoDBv2" preserve="all"/> <assembly fullname="AWSSDK.Lambda" preserve="all"/> </linker>
Note
To read interesting background information related to this requirement, see the article at https://aws.amazon.com/blogs/developer/referencing-the-aws-sdk-for-net-standard-2-0-from-unity-xamarin-or-uwp/