Comments (10)
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, IEnumerable
1 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(IEnumerable
1, 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, Action
1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
from restclient.
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.
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.
What do you think about this issue my friend? Real-Serious-Games/C-Sharp-Promise#84
from restclient.
What version of Unity are you using?
from restclient.
Can you rename the dll of RSG.Promise
to RSG.Promise.dll?
from restclient.
On the other hand, do you have a link.xml file?
- https://docs.unity3d.com/Manual/IL2CPP-BytecodeStripping.html
- https://docs.unity3d.com/Manual/dotnetProfileAssemblies.html
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.
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.
all users don't have the last version of Unity :/
from restclient.
@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)
- has no meta file, but it's in an immutable folder. The asset will be ignored. HOT 4
- can not debug anything/not getting any debugs in console after adding this package HOT 1
- Update promises to be awaitable using `async`/`await` HOT 6
- Missing Meta files
- Empty response on RestClient GET, works with curl HOT 1
- Can this library be called by hololens2 HOT 4
- Can't send post request after Update to latest version HOT 2
- Lost reference to script in GET
- Can't use GET in hololens build
- Running multiple POST requests using Promise.ThenAll returns an IEnumerable of ResponseHelper objects, not all of them returned Data
- How can I add mode in proyecto26? HOT 1
- Post not working on WebGL compilation HOT 3
- Can i use this asset to make my offline game multiplayer? HOT 1
- Default seralizer JsonUtility cannot serialize records HOT 1
- Why not async/await? HOT 2
- Using RestClient as a dependency in a unity package HOT 1
- Error while downloading file from Firebase Storage
- Specified cast is not valid. HOT 1
- Crashlytics reporting constant Fatal Exception: java.lang.Exception
- JsonUtility.ToJson as serialization method doesn't support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restclient.