"System.Collections.SortedList" doesn't exist in target framework?

I attempted to rebuild my unity project for the Windows Phone platform but for some reason keep running into this awkward error:-

[quote]
Error building Player: Exception: Error: type System.Collections.SortedList doesn't exist in target framework.
Error: type System.Collections.SortedList doesn't exist in target framework.
Error: type System.Collections.SortedList doesn't exist in target framework.
Error: type System.Collections.SortedList doesn't exist in target framework.
Error: type System.Collections.SortedList doesn't exist in target framework.
[/quote]

I also noticed that when switching to the WP platform, it does not show that in the title bar. All it shows is "unity - scene name.unity - Project name". Coincidence?

I already have VS express for Windows Phone SDK installed.

This error baffles me...surely .NET supports the System.Collections.SortedList class? how is it that it "does't exist"? Or have I done something wrong?

Any help would be MUCH appreciated!

Thanks:grin:

Hi Nerosam,

Unforunately, SortedList doesn’t exist in Windows Phone 8 / Windows 8 land.

Take a look here:

Windows Phone 8 - .NET API for Windows Phone | Microsoft Learn

Windows 8 - .NET desktop apps | Free tools and frameworks

This is a list of all the supported API’s available to you to use in your game.

Common issues are related to ArrayList, SortedList which should turn into a List; and Hashmap must be turned into a Dictionary<string, object>.

For most cases you can do a find and replace and it should just work, replacing a SortedList with a List, but in plugins you will need to reach out to the developer or grab an updated version to fix it.

-Kyle

I see. I just did some more digging into it and found that one of my assets (FXMaker) is using it. As the developer has not yet updated it to support WP8, im attempting to make some DIY changes to the source files.

Thanks

any luck? I’m about to give it a go as well. I need this working for wp8!

i figured it out.
Just comment out the GetChildsSortList method in the NGObject.cs file