gpailler / MegaApiClient

MegaApiClient is a C# .Net library to access http://mega.co.nz / http://mega.nz cloud storage and file hosting service.
https://gpailler.github.io/MegaApiClient/
MIT License
224 stars 78 forks source link

Problem with LoginAnonymous() #237

Open RemiBraizet opened 9 months ago

RemiBraizet commented 9 months ago

Description: using MyClient.LoginAnonymous(); make code throw and exception APIResponse bad session id

what are you trying to do i'm trying to publish an AOT executable

what happens when i publish my code in DEBUG configuration on one another computer i get a BadSessionID exception

what should happens i should get my anonymous connection working

MegaApiClient Version: 1.10.3

github repo of code snippet that cause the problem https://github.com/Remaetanju/TestMegaClientApi

I've searched a bit and found that AOT compilation comes with some trimming that seems to break your nuget i found this i think it might be usefull https://github.com/dotnet/project-system/issues/9101

.net 8.0

zp8ept commented 2 weeks ago

Have you found a solution for this? I am facing the same problem with AOT compilation.