Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: samlucas001 on July 23, 2013, 12:18:08 AM
-
Hi Guys,
Attempting to get NGUI working with WP8, and just adding the package to a blank project and trying to deploy to my phone I am getting an error
Error building Player: Exception: Error: type `System.Collections.Specialized.OrderedDictionary` doesn't exist in target framework.
I have looked through the code but cannot see any reference to the OrderedDictionary.
Thanks for any help.
Cheers
Sam
-
+1 :)
-
OrderedDictionary is used only in one place -- UIPanel -- and it is not used if the target is WP8. What version of NGUI are you running?
-
Hello there,
I am using the evaluation version from "http://www.tasharen.com/?page_id=140" and then have also tried the NGUI distribution service (I am waiting to get paid to buy the full version, and also wanted to test out NGUI to see if it does what I want it to - and it does :) )
Cheers
Sam
-
If the OrderedDictionary is not used - and it is #ifdef'd out -- why would it not compile? Is WP8 directive not working when you do a build? If so, which directive does?
-
Hi ArenMook,
Thanks for your help so far.
I can create a simple project, a plane, a cube with rigid body attached, then build and run this, and it runs on my phone and also creates a solution for VS.
As soon as I add in the NGUI package, the error occurs.
If I ONLY add the NGUI DLL part of the package the error still occurs, is there a reference in the DLL to the OrderedDictionary?
Cheers
Sam
-
NGUI DLL? Free version of NGUI is well over a year old and is not meant to work on anything other than editor and stand-alone builds. Its purpose is evaluation / preview, not deployment. If you want deployment, you need the full version.
-
Hello,
I'm replying this thread because I was getting the same error when building for Windows Phone 8, and I'd think the problem was NGUI, BUT then I realized the problem was with other plug-ins.
I solved it by removing all Prime31 plug-ins from my Project. It wasn't a problem for me, since these plug-ins were only for the Android and iPhone versions of my game Retro Runners, and since the WP8 version is a separate Project, removing all the plug-ins didn't affected anything for Windows Phone.
Maybe this is the issue you've got and you were misleaded to think it was NGUI's fault.
(sorry for any english errors, I'm brazilian)
-
I get an error building for WP8 on UIAtlasMaker.cs
System.IO.File.WriteAllBytes(newPath, bytes);
"Doesn't exist in target framework"
-
Which version of NGUI?
-
2.6.4
EDIT: This hack works:
http://www.tasharen.com/forum/index.php?topic=6625.msg31102#msg31102
-
2.6.4 is way out of date.