This project is read-only.


Mar 19, 2009 at 9:11 PM
I am getting a nullreferenceexception when I try to run the profiler from our main build server but not when I run it from my desktop.
Using CruiseControl v1.4.0.3400
Using MBBuild v3.5.30729.1
Using MS.NET Framework v3.5 SP1
PC that it works on is Vista Enterprise
PC that it does not work on is Windows Server Standard SP1 64bit
Any ideas??

*** msbuild task****************************











buildArgs>/maxcpucount /consoleloggerparameters:PerformanceSummary /verbosity:normal /l:MSBuildProfileFileLogger,MSBuildProfiler,Version=,Culture=neutral,PublicKeyToken=09544254e89d148c;file=C:\Build\CruiseControl.NET\server\StarfixDevelopment_Updates\my.snapshot</buildArgs>












[Development Updates Continuous Build:INFO] Task output: MSBUILD : error MSB4017: The build was aborted because of an unexpected logger failure.

System.NullReferenceException: Object reference not set to an instance of an object.

at Ardal.MSBuildProfiler.Project..ctor(String ProjectName, String projectFile, IEnumerable properties, String targetNames, String helpKeyword, String message, String senderName, Int32 threadId, DateTime timestamp)

at Ardal.MSBuildProfiler.MSBuildProfiler.PerformanceOnProjectStarted(Object sender, ProjectStartedEventArgs e)

at Microsoft.Build.Framework.ProjectStartedEventHandler.Invoke(Object sender, ProjectStartedEventArgs e)

at Microsoft.Build.BuildEngine.EventSource.RaiseProjectStartedEvent(Object sender, ProjectStartedEventArgs e)

Jun 29, 2009 at 2:19 PM

I had the same problem while building with multiple processors.  For me, building with /m:1 fixed the issue.


Dec 26, 2012 at 9:30 AM

I got source code and fixed it right away by adding "if (properties != null)" around foreach in Project constructor.