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

Dale Ragan dale.ragan at sinesignal.com
Wed Jun 2 23:17:25 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



More information about the Mono-devel-list mailing list