NullReferenceException in CSC task

Any ideas why I would get this?

C:\Tools.csproj(58,3): error MSB4018: The "Csc" task failed unexpectedly.
C:\Tools.csproj(58,3): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object.
C:\Tools.csproj(58,3): error MSB4018: at Microsoft.Build.Tasks.ManagedCompiler.CheckAllReferencesExistOnDisk()
C:\Tools.csproj(58,3): error MSB4018: at Microsoft.Build.Tasks.Csc.InitializeHostObject(Boolean& appropriateHostObjectExists, Boolean& continueBuild)
C:\Tools.csproj(58,3): error MSB4018: at Microsoft.Build.Utilities.ToolTask.Execute()
C:\Tools.csproj(58,3): error MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask)
Done building project "Tools.csproj" -- FAILED.

BTW, this is in a custom .csproj file (and custom .targets file). I'm just trying to get VS to host my custom MSBuild project file.

[1008 byte] By [KeithHill] at [2008-2-6]
# 1
There was a bug in Beta 2 that would cause the CSC task to crash if no references were passed in. Pass in at least one assembly into the References parameter and it should not crash.
DanMoseley at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...
# 2
Thanks. I'll give that a try when I get back from vacation. :-)
KeithHill at 2007-9-8 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...

Visual Studio

Site Classified