After upgrade to 4.6.1p2

@Tautvydas-Zilys

Some code were running well, now throw exception like:

Exception: The type initializer for ‘UnityScript.Lang.UnityRuntimeServices’ threw an exception.
Type: System.TypeInitializationException
Module: UnityScript.Lang
InnerException: Could not load file or assembly ‘System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ or one of its dependencies. The system cannot find the file specified.
AdditionalInfo:
at UnityScript.Lang.UnityRuntimeServices.GetEnumerator(Object obj)

the source are like:
var servers:Hashtable = new Hashtable();
for(var i:System.Collections.DictionaryEntry in servers)
{

Could you please explain how to exactly use those containers under new patch? I hope there is a way let me not to change all the Hashtable into Dictionary.
Thanks.

Hi,

this looks like a regression which happened some time in 4.5.x patch releases. It does not happen in 4.5.3, but it does it happen in 4.6.0 and 4.6.1p2. Thanks for telling us. I’m sorry this slipped through. I’ll fill a bug report.

Unfortunately, no more patch releases are scheduled for the holiday weeks, and after looking into it, I think it would be pretty hard to workaround.