1

Resolved

Engine.Operations.GetDocumentation(...) broken under .NET 4.0?

description

<Test>HostingTest.dll (GetDocumentation_FromDotNetObject)</Test>
 
Under .NET 3.5, calling "Engine.Operations.GetDocumentation(testObject)" where testObject is a .NET DateTime object produced a string containing "Represents an instant in time, typically expressed as a date and time of day".
 
Under .NET 4.0 it's now:
DateTime(ticks: Int64)
DateTime(ticks: Int64, kind: DateTimeKind)
DateTime(year: int, month: int, day: int)
DateTime(year: int, month: int, day: int, calendar: Calendar)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, kind: DateTimeKind)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, calendar: Calendar)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, kind: DateTimeKind)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, calendar: Calendar)
DateTime(year: int, month: int, day: int, hour: int, minute: int, second: int, millisecond: int, calendar: Calendar, kind: DateTimeKind)
 
Is this really a change in .NET 4.0 or is this API broken somehow?

comments

rdawson wrote Jun 28, 2010 at 7:22 PM

Dave, if you're still seeing this on your machine, come get me. It's a matter of IPy being able to find mscorlib.xml in DocBuilder.cs. I was able to see the full documentation (including the old string) on 4.0 locally. In 4.0, the xml documentation is in with the reference assemblies, for instance: C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\mscorlib.xml. Seems likely that the machines in question probably didn't have the SDK installed.