Giter Club home page Giter Club logo

Comments (10)

meds avatar meds commented on May 24, 2024 1

As per your suggestion I deleted RSG.Promise_net35.dll, unfortunately that didn't seem to solve the issue or at least creates another issue which is very weird and might actually be a Unity bug. The error I think has to do with Proyecto26.RestClient targetting .net 3.5 while I'm building .net 4.0, however if I drop the version to 3.5 in the compiler (which is now deprecated) the RSG.Promise_netstandard.dll is no longer compatible as that targets 4.0.

But I would have thought that .net 4.0 would support a .net 3.5 assembly..

stdout:

Fatal error in Unity CIL Linker
Mono.Linker.MarkException: Error processing method: 'RSG.IPromise1<Proyecto26.ResponseHelper> Proyecto26.RestClient::Post(Proyecto26.RequestHelper)' in assembly: 'Proyecto26.RestClient.dll' ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'RSG.Promise, Version=3.0.1.0, Culture=neutral, PublicKeyToken=null' at Unity.IL2CPP.Common.MissingMethodStubber.GetTypeModule(TypeReference type, IEnumerable1 assemblies)
at Unity.Linker.Steps.AddUnresolvedStubsStep.MarkAssemblyOfType(UnityLinkContext context, TypeReference type)
at Unity.Linker.Steps.Marking.UnresolvedStubMarking.HandleUnresolvedType(TypeReference reference)
at Unity.Linker.Steps.UnityMarkStep.HandleUnresolvedType(TypeReference reference)
at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Unity.Linker.Steps.UnityMarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Unity.Linker.Steps.UnityMarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.Process(LinkContext context)
at Unity.Linker.UnityDriver.Run()
at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling()
at Unity.Linker.UnityDriver.RunDriver()
stderr:

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73) UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:174)
UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable1, BuildTargetGroup, ManagedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:121) UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:305) UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:198) UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:176) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

from restclient.

meds avatar meds commented on May 24, 2024 1

I think it's fine the way it is, but perhaps the latest version of the plugin shouldn't have DLLs for the older versions of Unity, but that's just my opinion and isn't something that necessarily has to happen.

Thanks for your help!

from restclient.

jdnichollsc avatar jdnichollsc commented on May 24, 2024

Hello!
Are you downloading the plugin from nuget? Otherwise, you have to remove the RSG.Promise dll for .NET 305 (legacy code) because you only need the .NET Standard version.

Please, let me know and thanks for use this plugin

from restclient.

jdnichollsc avatar jdnichollsc commented on May 24, 2024

What do you think about this issue my friend? Real-Serious-Games/C-Sharp-Promise#84

from restclient.

jdnichollsc avatar jdnichollsc commented on May 24, 2024

What version of Unity are you using?

from restclient.

jdnichollsc avatar jdnichollsc commented on May 24, 2024

Can you rename the dll of RSG.Promise to RSG.Promise.dll?

from restclient.

jdnichollsc avatar jdnichollsc commented on May 24, 2024

On the other hand, do you have a link.xml file?

Something like this:

<linker>
       <assembly fullname="Proyecto26.RestClient" preserve="all" />
       <assembly fullname="RSG.Promise" preserve="all" />
</linker>

or

<linker>
       <assembly fullname="Proyecto26.RestClient">
               <type fullname="RSG.Promise" preserve="all"/>
       </assembly>
</linker>

Let me know

from restclient.

jdnichollsc avatar jdnichollsc commented on May 24, 2024

If you want I can generate other dll of Proyecto26.RestClient for .NET Standard.
I apologize for the inconveniences, I do not have much experience with Unity

from restclient.

jdnichollsc avatar jdnichollsc commented on May 24, 2024

all users don't have the last version of Unity :/

from restclient.

jdnichollsc avatar jdnichollsc commented on May 24, 2024

@meds on the other hand, you can use RSG.Promise.dll (net 3.5 version) with .NET 4 except in UWP because .NET Standard is required to support that platform.

from restclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.