- Home /
link.xml Assemblies Are Being Removed Upon Entering Project in Unity 5.3.5f1 AWS SDK
As the AWS SDK documentation suggests here, I have added the appropriate components to the link.xml file like:
<assembly fullname="AWSSDK.Core" preserve="all"/>
<assembly fullname="AWSSDK.CognitoIdentity" preserve="all"/>
<assembly fullname="AWSSDK.CognitoSync" preserve="all"/>
<assembly fullname="AWSSDK.DynamoDBv2" preserve="all"/>
<assembly fullname="AWSSDK.Lambda" preserve="all"/>
<assembly fullname="AWSSDK.MobileAnalytics" preserve="all"/>
<assembly fullname="AWSSDK.SecurityToken" preserve="all"/>
<assembly fullname="AWSSDK.IdentityManagement" preserve="all"/>
However, as soon as I open my project in the Unity editor, the above code is changed to:
<assembly fullname="AWSSDK.Core" />
So, either A) The format listed in AWS's documentation is incorrect or B) Unity 5.3.5f1 has a bug. Does anyone know the correct format? I've found that the following doesn't automatically get automatically overwritten:
<assembly fullname="AWSSDK.Core">
<type fullname="Amazon.Util.Internal.PlatformServices.NetworkReachability" preserve="all" />
<namespace fullname="Amazon.Util.Internal.PlatformServices" preserve="all" />
</assembly>
<assembly fullname="AWSSDK.CognitoIdentity">
<namespace fullname="Amazon.Util.Internal.PlatformServices" preserve="all" />
</assembly>
<assembly fullname="AWSSDK.CognitoSync">
<namespace fullname="Amazon.Util.Internal.PlatformServices" preserve="all" />
</assembly>
<assembly fullname="AWSSDK.MobileAnalytics">
<namespace fullname="Amazon.Util.Internal.PlatformServices" preserve="all" />
</assembly>
<assembly fullname="AWSSDK.SecurityToken">
<namespace fullname="Amazon.Util.Internal.PlatformServices" preserve="all" />
</assembly>
<assembly fullname="AWSSDK.Lambda">
<namespace fullname="Amazon.Util.Internal.PlatformServices" preserve="all" />
</assembly>
<assembly fullname="AWSSDK.DynamoDBv2">
<namespace fullname="Amazon.Util.Internal.PlatformServices" preserve="all" />
</assembly>
However, then I get errors similar to @JumpDog's post here, where I get the error
System.InvalidOperationException: Type System.String is unsupported, it cannot be instantiated at Amazon.DynamoDBv2.DataModel.StorageConfig...
So that makes me think that is not the correct format either. I've also seen this post and this post, and they have not worked. Please help! Thanks!
I'm using Unity 5.3.5f1 and AWS SDK 3.1.83.0
Answer by rself · Jul 16, 2016 at 06:57 AM
The following worked for me. I replaced all the features I was using with:
<assembly fullname="AWSSDK.[some feature]">
<type fullname="Amazon.*" preserve="all" />
<namespace fullname="Amazon.Util.Internal.PlatformServices" preserve="all" />
</assembly>
I've put an issue in the aws-sdk github repo to update their documentation.
This is a goofy Q- But where is the link.xml file meant to go? IN /Assets?