Crash if no Dependencies specified


The build will crash if no Dependencies are specified.
Specifically, if this code is left out:
<Dependencies Include="_whatever.goes.here_"/>
Then a /out:"" argument gets passed to MRefBuilder which throws an ArgumentException that says:
Unhandled Exception: System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.GetDirectoryName(String path)
at Microsoft.Ddue.Tools.Reflection.ApiVisitor.LoadAccessoryAssemblies(String filePattern)
at Microsoft.Ddue.Tools.MRefBuilder.Main(String[] args)
C:\Program Files\MSBuild\Sandcastle\Sandcastle.targets(89,5): error MSB3073: The command ""c:\Program Files\Sandcastle\ProductionTools\MRefBuilder" "D:\Path\To\DLL.dll" /dep:"" /out:reflection.org" exited with code -532459699.
Just including a Dependency of a dummy DLL (as in the example), like
<Dependencies Include="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll"/>
fixes the problem.
Closed Jan 4, 2007 at 3:57 PM by andlju


wrote Jan 4, 2007 at 3:57 PM

Resolved with changeset 15428.

wrote Feb 13, 2013 at 3:43 AM

wrote May 15, 2013 at 12:15 AM