aws / amazon-gamelift-plugin-unity

The Amazon GameLift Plugin for Unity contains libraries and native UI that makes it easier to access GameLift resources and integrate GameLift into your Unity game. You can use the GameLift Unity Plugin to access GameLift APIs and deploy AWS CloudFormation templates for common gaming scenarios.
https://aws.amazon.com/gamelift/getting-started/
Apache License 2.0
81 stars 16 forks source link

Error: The type 'FileIOPermission' exists in both, System.Security.Permissions and mscorlib #244

Closed scrapHandler closed 9 months ago

scrapHandler commented 9 months ago

Hi, after installing Amazaon GameLift Server SDK 5.1.0, I get the error:

Library\PackageCache\com.unity.services.core@1.12.0\Editor\Core\Configuration\ProjectConfigurationBuildInjectorWithPlayerProcessor.cs(51,50): error CS0433: The type 'FileIOPermission' exists in both 'System.Security.Permissions Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

System.Security.Permissions Version=7.0.0.0 is used by Amazaon GameLift Server SDK 5.1.0. mscorlib Version=4.0.0.0 seems to be part of Unity or .Net com.unity.services.core@1.12.0 is used by "com.unity.services.cloud-diagnostics 1.0.6" and "com.unity.purchasing 4.10.0"

What can I do? (Without removal of cloud-diagnostics and purchasing package)

wenxiul commented 9 months ago

Hi, @scrapHandler are you using a compatible Unity editor (2021.3 LTS, 2022.3 LTS)? Please have Windows Dedicated Server Build Support module installed by going to Unity Hub -> Installs -> click on the gear button on the right of your editor -> Add modules and see if the issue resolves!

scrapHandler commented 9 months ago

Hi @wenxiul , thx for your answer!

I'm using Unity 2022.3 LTS and want to build for Linux Server. And I have all modules installed, including "Windows Dedicated Server Build".

But this did not solve my problem. What I did was, to setup it on my own, with downloading the required dll's from nuget and for System.Security.Permissions.dll I unchecked "Auto Reference", which did the trick.

JonghaShin commented 8 months ago

Hello, I got a same problem.

How can I fix it?