Proper way to install AWS SDK libraries?

There are a lot of posts around from people who dealt with PREVIOUS versions of Unity and PREVIOUS versions of the AWS SDK. I can’t seem to find any up-to-date information about the proper way to get it installed, and I keep having lots of problems getting it to work for my Webgl build.

I’ve had all kinds of issues - code stripping, dependency management, problems with NuGet for Unity, version mismatches… I feel like I’m chasing my tail trying trying a bunch of different approaches and trying to get it all to come together.

I see random forum posts around with links to an old AWS SDK UnityPackage that seems to not be referenced by any website. I see a lot of admonitions to do this and don’t do that. But I can’t seem to get it working.

We are running 2019.3.0f6, with API compatibility level .NET 4.x, and targeting WebGL.

It is possible Amazon offers it as a git repo now… have you checked for that?

You can download the dlls from nuget with dotnet https://dotnet.microsoft.com/

  • Create an empty folder and run the following commands in the folder:
    dotnet new classlib -f netstandard2.0
    dotnet add package AWSSDK.PackageYouWant
    Run dotnet add package for each nuget package you need GitHub - aws/aws-sdk-net: The official AWS SDK for .NET. For more information on the AWS SDK for .NET, see our web site:
    dotnet publish -c Release
  • DLLs (including dependencies) can be found in <yourfolder>\bin\Release\netstandard2.0\publish (not needed: yourfolder.dll)
  • Copy the dll files to Assets/Plugins/ in your Unity project (you can put them in matching subfolders like AWSSDK)
  • You may need to add a link.xml file to your assets folder due to IL2CPP stripping



1 Like

These pages will be helpful.

1 Like