Special considerations for Unity support (original) (raw)
When using the AWS SDK for .NET and .NET Standard 2.0 for your Unity application, your application must reference the AWS SDK for .NET assemblies (DLL files) directly rather than using NuGet. Given this requirement, the following are important actions you will need to perform.
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 topicObtaining 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
In addition to these special considerations, see What's changed for version 3.5 for information about migrating your Unity application to version 3.5 of the AWS SDK for .NET.
Accessing credentials and profiles in an application
Xamarin support
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.