Author Topic: [3.5.8] Windows Store Compiler Errors  (Read 3194 times)

Ana

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
[3.5.8] Windows Store Compiler Errors
« on: April 23, 2014, 03:51:49 PM »
1. Error
http://www.tasharen.com/forum/index.php?topic=9217.0

2. After fixing the first error, have to fix classes using that method, more specifically, PropertyBinding OnValidate method. Have to surround it with #if REFLECTION_SUPPORT as well

3. DataNode in ConvertValue method, type.IsEnum doesn't exist in Windows Store applications.

Also, I want to know, are there any NGUI features that I can't use on Windows Phone 8 and in Windows Store Apps? Besides, some methods for convenience? Cause after these errors and using REFLECTION_SUPPORT I am worried about going further along the project only to find out some things aren't supported on Windows Store and Windows Phone 8.
« Last Edit: April 24, 2014, 01:26:09 AM by Ana »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [3.5.8] Windows Store Compiler Errors
« Reply #1 on: April 24, 2014, 01:31:04 AM »
Wow, IsEnum is also not valid on WSA? That's pretty awful. I don't know why Microsoft decided to ship a different version of .NET that's missing half its features for WP8/WSA. Worse yet, they forced Unity to use their stripped-down .NET library instead of using Mono like on every other non-Windows platform. But that's how it is... Unfortunately when working with a WP8/WSA target platform you are effectively working with a crippled set of tools due to Microsoft.

The Reset() function in PropertyReference should not be commented out. It should look like:
  1.         public void Reset ()
  2.         {
  3. #if REFLECTION_SUPPORT
  4.                 mField = null;
  5.                 mProperty = null;
  6. #endif
  7.         }
Then you won't run into #2.

Ana

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: [3.5.8] Windows Store Compiler Errors
« Reply #2 on: April 24, 2014, 03:50:59 AM »
Quote
Then you won't run into #2.
Yes, that's one way to fix it.

Quote
IsEnum is also not valid on WSA? That's pretty awful. I don't know why Microsoft decided to ship a different version of .NET that's missing half its features for WP8/WSA. Worse yet, they forced Unity to use their stripped-down .NET library instead of using Mono like on every other non-Windows platform. But that's how it is... Unfortunately when working with a WP8/WSA target platform you are effectively working with a crippled set of tools due to Microsoft.
I agree with everything you said. >:(
I have no idea why they decided to cripple their devices.

So what NGUI features don't work because of the crippled .NET library? Data binding?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [3.5.8] Windows Store Compiler Errors
« Reply #3 on: April 25, 2014, 05:29:05 AM »
Everything to do with reflection -- so crippled EventDelegate (have to use SendMessage), no PropertyBinding, no DataNode.