[Mono-dev] Microsoft.Build.BuildEngine.Engine Bug with patch

Dale Ragan dale.ragan at sinesignal.com
Wed Jun 2 23:18:23 EDT 2010


I came across a bug today calling the
Microsoft.Build.BuildEngine.Engine.GetLoadedProject method.  Calling this
method with a project file that has not been loaded into the projects
dictionary yet causes a System.Collections.Generic.KeyNotFoundException.

Based on Microsoft's documentation on MSDN[1], if no Project object is
associated with the specified project file, the method should return a null
reference (Nothing in Visual Basic).

I have attached a patch that fixes the bug along with a regression test.

Could you also give me an idea of the next version number of Mono that
this patch will be included in?

Thanks,

Dale Ragan
http://sinesignal.com/

[1]:
http://msdn.microsoft.com/en-us/microsoft.build.buildengine.engine.getloadedproject.aspx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Microsoft.Build.BuildEngine.diff
Type: text/x-patch
Size: 1150 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100602/ce16357b/attachment.bin 


More information about the Mono-devel-list mailing list