Hi,
BuildCookRun.Automation.cs crashes in some cases when the project file is missing.
The code normally will set the private variable ProjectFullPath but one code path it can fail to do so which causes a crash before even throwing the “Could not find a project file {0}” exception.
The fix is fairly simple:
replace these lines (around line 335):
if (!FileExists_NoExceptions(ProjectFullPath.FullName))
{
throw new AutomationException("Could not find a project file {0}.", ProjectName);
}
with these:
if (GameProj == null || !FileExists_NoExceptions(ProjectFullPath.FullName))
{
throw new AutomationException("Could not find a project file {0}.", ProjectName);
}
Cheers,