Build/Test Issues

dynamic build errors still persist in 1.34b

Started by minorello on 6,960 views

Exception on build one of the proj:

foreach statement cannot operate on variables of type 'object' because 'object' does not contain a public definition for 'GetEnumerator'

IDictionary<string, dynamic> output; [...]

dynamic settings = output["Settings"];
foreach (var setting in settings)
{
[...]
}

Michele.
Damn. You aren't by chance working in an open source solution are you? All attempts I've made to reproduce this issue consistently have failed ... I think it's being triggered by a combination of build configuration and some kind of unusual IL arrangement.

Post a reply

Log in to reply.