if you're able post your custom msbuild task to help with the performance stuff that would be helpful too
@Redth here's the build task we ended up using. https://github.com/xamarin/GooglePlayServicesComponents/issues/216#issuecomment-517740275
sh build.sh --target=libsand
sh build.sh --target=nuget. First, I had to manually restore the nuget packages myself, as the automatic build process would not do so successfully. This was before I attempted any chances to the code (I just wanted to build the code as-is).
NuGet.Frameworks.FrameworkException: Invalid framework identifier ''.pop up, and build fails due to
error NETSDK1004: Assets file 'C:\Users\hadri\source\repos\SkiaSharp\binding\SkiaSharp.NetStandard\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.. What happened?
Hi, I've got an otherwise working binding but one particular method is causing a runtime error :
System.InvalidCastException Specified cast is not valid. at (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr) at ObjCRuntime.Runtime.ConstructNSObject[T] (System.IntPtr ptr, System.Type type, ObjCRuntime.Runtime+MissingCtorResolution missingCtorResolution) [0x00050] in <c7623ebd6c5c49808d04bacb43da90c0>:0 at ObjCRuntime.Runtime.GetNSObject[T] (System.IntPtr ptr) [0x000d1] in <c7623ebd6c5c49808d04bacb43da90c0>:0 at ObjCRuntime.Trampolines+SDMPTransactionProcessParametersStepsBlock.Invoke (System.IntPtr block, System.IntPtr arg0) [0x0001c] in /Users/gaz/Projects/testBindings/obj/Debug/ios/ObjCRuntime/Trampolines.g.cs:4969 at (wrapper native-to-managed) ObjCRuntime.Trampolines+SDMPTransactionProcessParametersStepsBlock.Invoke(intptr,intptr) at (wrapper managed-to-native) ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(intptr,intptr,intptr)
As far as I can see everything lines up with my
ApiDefinition.cs and my native lib for this particular class declaration but I'm unable to get past this error
Is there anything in particular about block handling I need to be careful of?
Does anyone have any tips on how I can debug this further to see what's amiss?