dgkanatsios / AzureServicesForUnity

Accessing Azure services (App Service, Table Storage, CosmosDB with Table API, Event Hubs) from a Unity game
https://dgkanatsios.com/2016/04/14/use-azure-services-from-unity/
MIT License
55 stars 17 forks source link

104 Errors on UWP app build #3

Closed DDR12 closed 7 years ago

DDR12 commented 8 years ago

Thank you for your efforts, much appreciated! This is perfect and smooth in editor. Trying to build a UWP app I got like 104 errors: here's a peak on some of them:

Full Log of all errors mostly because some APIs are no longer compatiable with UWP. Which means we'll need to use #if NETFX_CORE

Part of Editor log: Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\Utilities.cs(30,29): error CS1061: 'Type' does not contain a definition for 'IsGenericType' and no extension method 'IsGenericType' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(3709,28): error CS1061: 'MemberInfo' does not contain a definition for 'MemberType' and no extension method 'MemberType' accepting a first argument of type 'MemberInfo' could be found (are you missing a using directive or an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(3722,28): error CS1061: 'MemberInfo' does not contain a definition for 'MemberType' and no extension method 'MemberType' accepting a first argument of type 'MemberInfo' could be found (are you missing a using directive or an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(3631,82): error CS0117: 'Delegate' does not contain a definition for 'CreateDelegate' Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(3654,33): error CS0117: 'Delegate' does not contain a definition for 'CreateDelegate' Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2441,38): error CS1501: No overload for method 'GetMethod' takes 5 arguments Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2446,30): error CS0117: 'Delegate' does not contain a definition for 'CreateDelegate' Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2448,69): error CS1061: 'ConstructorInfo' does not contain a definition for 'MethodHandle' and no extension method 'MethodHandle' accepting a first argument of type 'ConstructorInfo' could be found (are you missing a using directive or an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(3057,60): error CS0117: 'Delegate' does not contain a definition for 'CreateDelegate' Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(3037,55): error CS0117: 'Delegate' does not contain a definition for 'CreateDelegate' Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2989,50): error CS0117: 'Delegate' does not contain a definition for 'CreateDelegate' Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2966,54): error CS0117: 'Delegate' does not contain a definition for 'CreateDelegate' Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2941,57): error CS1061: 'Type' does not contain a definition for 'IsValueType' and no extension method 'IsValueType' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2898,56): error CS0117: 'Delegate' does not contain a definition for 'CreateDelegate' Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2880,52): error CS0117: 'Delegate' does not contain a definition for 'CreateDelegate' Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2563,26): error CS0234: The type or namespace name 'FormatterServices' does not exist in the namespace 'System.Runtime.Serialization' (are you missing an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2533,26): error CS0234: The type or namespace name 'FormatterServices' does not exist in the namespace 'System.Runtime.Serialization' (are you missing an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2507,26): error CS0234: The type or namespace name 'FormatterServices' does not exist in the namespace 'System.Runtime.Serialization' (are you missing an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2484,26): error CS0234: The type or namespace name 'FormatterServices' does not exist in the namespace 'System.Runtime.Serialization' (are you missing an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2463,26): error CS0234: The type or namespace name 'FormatterServices' does not exist in the namespace 'System.Runtime.Serialization' (are you missing an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2414,58): error CS1061: 'Type' does not contain a definition for 'IsSubclassOf' and no extension method 'IsSubclassOf' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2369,54): error CS0117: 'Delegate' does not contain a definition for 'CreateDelegate' Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2213,61): error CS1061: 'Type' does not contain a definition for 'IsValueType' and no extension method 'IsValueType' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(2069,61): error CS1061: 'Type' does not contain a definition for 'IsValueType' and no extension method 'IsValueType' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(616,50): error CS1061: 'Type' does not contain a definition for 'IsValueType' and no extension method 'IsValueType' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?) Assets\Scripts\AzureServicesForUnity\QueryHelpers\Other\PartialEvaluatorNoEmit.cs(616,77): error CS1061: 'Type' does not contain a definition for 'IsValueType' and no extension method 'IsValueType' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)

dgkanatsios commented 8 years ago

Just did a quick check, apart from the UWP types missing (which could or could not be solved), there is also another issue which I've missed. I see some errors on the UnityWebRequest object, such as Assets\AzureServicesForUnity\EasyTables.cs(76,34): error CS1061: 'UnityWebRequest' does not contain a definition for 'Send' and no extension method 'Send' accepting a first argument of type 'UnityWebRequest' could be found (are you missing a using directive or an assembly reference?) Not sure if this can be resolved (UnityWebRequest is the core in the library), will keep searching.

DDR12 commented 8 years ago

@dgkanatsios Even if you set (From player settings) .NET CORE to None, this would remove all Type errors but you'd still get he UnityWebRequest errors. Note that setting .NET CORE to none will make the WACK test fail when submitting to store so, it has to use native UWP libraries or using the #if NETFX_CORE

I did find a work around, using REST API and ODATA queries but they're just painful to work with but I had no other option, what attracted me to this was it's plugin-less nature.

dgkanatsios commented 8 years ago

As mentioned here UnityWebRequest works on 5.4 (still in Beta). Can you check? Let's solve this and then we'll check the Type related errors.

Moreover, can you run a quick check and run this version and let me know whether the Type related errors still occur?

dgkanatsios commented 7 years ago

Fixed with version 0.0.12, I basically removed all the LINQ-to-OData query stuff, works now on UWP.