Author Topic: Windows store compliation errors  (Read 5159 times)

dweebster

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Windows store compliation errors
« on: May 12, 2014, 12:55:11 PM »
With the latest update v3.5.9 I get the following errors when compiling for Windows Store using SDK 8.0.

Assets\NGUI\Scripts\Internal\ByteReader.cs(31,19): error CS0103: The name 'File' does not exist in the current context
Assets\NGUI\Scripts\Internal\DataNode.cs(724,12): error CS1061: 'System.Type' does not contain a definition for 'IsAssignableFrom' and no extension method 'IsAssignableFrom' accepting a first argument of type 'System.Type' could be found (are you missing a using directive or an assembly reference?)
Assets\NGUI\Scripts\Internal\DataNode.cs(727,12): error CS1061: 'System.Type' does not contain a definition for 'IsEnum' and no extension method 'IsEnum' accepting a first argument of type 'System.Type' could be found (are you missing a using directive or an assembly reference?)

The first error I'm pretty sure was not there on earlier versions.

dweebster

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Windows store compliation errors
« Reply #1 on: May 12, 2014, 02:42:52 PM »
Part I found was already reported and a solution suggested:
http://www.tasharen.com/forum/index.php?topic=9434.0

dweebster

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Windows store compliation errors
« Reply #2 on: May 12, 2014, 02:52:33 PM »
For the 2nd issue I found a similar one:

http://www.tasharen.com/forum/index.php?topic=9135.msg43104#msg43104

But the suggestion to have:
#if UNITY_EDITOR || (!UNITY_FLASH && !NETFX_CORE && !UNITY_WP8)
#define REFLECTION_SUPPORT
#endif

In the top doesn't work as it was already present, any additional advise is welcome!

dweebster

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Windows store compliation errors
« Reply #3 on: May 19, 2014, 11:53:59 AM »
BUMP - Still having problems with building for Windows Store apps.

Anyone succeeded building NGUI 3.6 for Windows Store apps? If yes, let me know how u managed!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Windows store compliation errors
« Reply #4 on: May 19, 2014, 12:18:20 PM »
What compile issues are you seeing in 3.6.0? I need line numbers and such.

dweebster

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Windows store compliation errors
« Reply #5 on: May 19, 2014, 12:57:32 PM »
These are the errors I get:

Assets\NGUI\Scripts\Internal\DataNode.cs(725,12): error CS1061: 'System.Type' does not contain a definition for 'IsAssignableFrom' and no extension method 'IsAssignableFrom' accepting a first argument of type 'System.Type' could be found (are you missing a using directive or an assembly reference?)

Assets\NGUI\Scripts\Internal\DataNode.cs(728,12): error CS1061: 'System.Type' does not contain a definition for 'IsEnum' and no extension method 'IsEnum' accepting a first argument of type 'System.Type' could be found (are you missing a using directive or an assembly reference?)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Windows store compliation errors
« Reply #6 on: May 19, 2014, 01:23:31 PM »
DataNode? It was removed...

You need to follow upgrade instructions from the readme file.

dweebster

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Windows store compliation errors
« Reply #7 on: May 20, 2014, 01:42:34 AM »
DataNode? It was removed...

You need to follow upgrade instructions from the readme file.

You are correct somehow I managed to import an old version of NGUI and then it was upgraded. Now it works properly, thanks for the help!