Author Topic: Compile Error when Building for Windows Store App  (Read 3322 times)

Rajmahal

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Compile Error when Building for Windows Store App
« on: April 09, 2014, 02:42:38 PM »
Hi,

I'm running into a compile error when I try to use NGUI in a Windows Store Build.  I'm using the latest version of Unity (Pro) and NGUI.  I've tried creating just an empty project with NGUI as the only asset and when I try to Build in Windows Store, I get the following error:

"Assets\NGUI\Scripts\Internal\EventDelegate.cs(102,2): error CS0246: The type or namespace name 'MethodInfo' could not be found (are you missing a using directive or an assembly reference?)"

Is there any way to get around this?  I get the same message in my current game project and I would really like to keep the NGUI components and submit to the Windows Store this month.

Thanks,

Raj

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile

Rajmahal

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Compile Error when Building for Windows Store App
« Reply #2 on: April 09, 2014, 05:56:41 PM »
Fantastic ... thanks for the quick reply!

Rajmahal

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Compile Error when Building for Windows Store App
« Reply #3 on: April 10, 2014, 10:29:13 AM »
Just to clarify, I'm having an issue with building to Windows 8.1 store and the linked fix is for Windows phone 8.

Can you let me know what would be the necessary code fix for Windows 8.1 store builds?

Rajmahal

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Compile Error when Building for Windows Store App
« Reply #4 on: April 10, 2014, 02:36:11 PM »
Actually never mind .... performing the commenting out steps worked.  Can you please include these fixes in the next update. 

Many thanks,

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Compile Error when Building for Windows Store App
« Reply #5 on: April 11, 2014, 07:10:55 AM »
Don't worry, they've been in the Pro version since last week so you will see them in the next update.