Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: dweebster on May 12, 2014, 12:55:11 PM

Title: Windows store compliation errors
Post by: dweebster 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.
Title: Re: Windows store compliation errors
Post by: dweebster 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
Title: Re: Windows store compliation errors
Post by: dweebster 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!
Title: Re: Windows store compliation errors
Post by: dweebster 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!
Title: Re: Windows store compliation errors
Post by: ArenMook on May 19, 2014, 12:18:20 PM
What compile issues are you seeing in 3.6.0? I need line numbers and such.
Title: Re: Windows store compliation errors
Post by: dweebster 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?)
Title: Re: Windows store compliation errors
Post by: ArenMook on May 19, 2014, 01:23:31 PM
DataNode? It was removed...

You need to follow upgrade instructions from the readme file.
Title: Re: Windows store compliation errors
Post by: dweebster 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!