New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readme Link to learn more about unity implementation gives 404 error #1684
Comments
|
Link under https://github.com/aws/aws-sdk-net/#unity-support is broken. |
|
Unity.README.md disappeared in this commit 8473ada. However, the AWS SDK for Unity is deprecated and projects using Unity 2018.1 or later should use the .NET Standard 2.0 release of the AWS SDK for .NET. The deprecated library can be found here: https://github.com/aws/aws-sdk-unity-net, and has limited features. I would suggest that the README.md be updated to reflect the information found in this blog post https://aws.amazon.com/blogs/developer/referencing-the-aws-sdk-for-net-standard-2-0-from-unity-xamarin-or-uwp/ which details where to find the prebuilt binaries and how to get Unity working correctly with the AWS .NET SDK when il2cpp is used. Also, have a link to the deprecated repository for people using older versions of Unity. |
|
What IS the right way to get up and running now? Even with the .NET Standard 2.0 release, the sample S3 code doesn't compile. |
|
After following the recommendation linked by @squidbot above, I'm getting an error
I copied the AWSSDK.Lambda and AWSSDK.Core dlls into the project and updated |
|
As it happens I'm writing up a new guide that includes these details. Here's my notes on integrating the AWS .Net SDK in to Unity. These are just notes, so it may be a little disorganized, but it should get you on the right track. In this case, I'm just adding AWSSDK.Core and AWSSDK.CognitoIdentityProvider. I do have this up and running in Unity 2020.1.3f1. The blog post I refer to is https://aws.amazon.com/blogs/developer/referencing-the-aws-sdk-for-net-standard-2-0-from-unity-xamarin-or-uwp/ [Begin Notes]
You’ll see errors about the assemblies not loading due to a missing reference to Microsoft.Bcl.AsyncInterfaces. You need to get these from NuGet. This page https://docs.microsoft.com/en-us/visualstudio/cross-platform/unity-scripting-upgrade?view=vs-2017#add-packages-from-nuget-to-a-unity-project discusses how to add the dll’s from NuGet correctly. I made this a little easier... problem is the VisualStudio project is constantly resaved, so you lose any nuget stuff you set up in the project, so you need to grab from nuget and then copy to the plugins folder.
At this point all dependencies should be resolved. Note there are some easier ways to use NuGet with Unity, including a package here that looks pretty sweet but I didn’t try it: https://github.com/GlitchEnzo/NuGetForUnity |
|
Thank you! I almost got there myself, thank you for filling in the gaps. |
THANKS, THANKS, THANK YOU VERY MUCH. |
|
For other users, I wasn't able to de-zip the nugget packages for some reason. What I did was in my unity solution in rider IDE, I installed the packages from Nuget (Tools > Nuget > Show Nuget Tool Window). I installed them. They go into UnityProjectRoot/Packages folder. This doesn't actually work, but it gives you access to the appropriate DLLs. You go into the folders in finder and look for the dotnetstandard2.0 versions of the dlls, and drag these into the plugins folder. Then you delete the folders that were added into the packages folder. Be careful not to delete the package lock or manifest file! Note: I got an error that I already had System.Runtime.CompilerServices.Unsafe.dll. So I just deleted it afterwards. |
|
The README for aws/aws-sdk-net has been updated to handle changes to Unity support.
The following is a direct link to the Unity content in the README: https://github.com/aws/aws-sdk-net#unity-support |
|
https://github.com/aws/aws-sdk-net/blob/master/Unity.README.md
Doesn't exist.
The text was updated successfully, but these errors were encountered: