Author Topic: Windows 8 Store issue when compiling. type.IsAssignableFrom  (Read 4898 times)

latas

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Hi guys trying to build our project for Windows 8.1 Store NGUI is throwing two error messages when building the project (not editor). The issue happens in the 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?) and also:

\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?)

Can you provide us a quick fix as workaround, we're preparing our submission today.

Thank you very much.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Windows 8 Store issue when compiling. type.IsAssignableFrom
« Reply #1 on: July 18, 2014, 04:41:22 AM »
DataNode is not a part of NGUI. It's a part of TNet. Please follow the upgrade instructions from the readme when updating NGUI. You need to delete the old version of NGUI before importing the update or you'll leave files left over such as DataNode in your case.

latas

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Windows 8 Store issue when compiling. type.IsAssignableFrom
« Reply #2 on: July 19, 2014, 02:26:21 AM »
Mmmm, understood, but I've never installed TNet. It means there are some references of NGUI included in the package in some ancient version of NGUI?

Thank you.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Windows 8 Store issue when compiling. type.IsAssignableFrom
« Reply #3 on: July 19, 2014, 12:33:24 PM »
Yes. DataNode was first prototyped in the NGUI project, then moved over to TNet since it made more sense to have it there.