SHFB : error BE0042 when running from command line

Topics: Developer Forum
Dec 19, 2012 at 2:49 PM

Hi, I get an error when running this command on Windows Server 2012:

msbuild C:\Sandcastle\Documentation.shfbproj /p:CleanIntermediates=True /p:Configuration=Release
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.17929]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/19/2012 4:34:42 PM.
Project "C:\Sandcastle\Documentation.shfbproj" on node 1 (default targets).
CoreBuildHelp:
  Building C:\Sandcastle\Documentation.shfbproj
  Initializing
  ClearWorkFolder
  FindingTools
  ValidatingDocumentationSources
SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Projects\DeltaEngine\DeltaEngineFull.sln' (Configuration: Release Platform: x86) [C:\Sandcastle\Documentation.shfbproj]
SHFB : error BE0042: You must specify at least one documentation source in the form of an assembly or a Visual Studio solution/project file [C:\Sandcastle\Documentation.shfbproj]
  Failed
  Build details can be found in C:\Sandcastle\LastBuild.log
Done Building Project "C:\Sandcastle\Documentation.shfbproj" (default targets) -- FAILED.

Build FAILED.

"C:\Sandcastle\Documentation.shfbproj" (default target) (1) -> (CoreBuildHelp target) ->
  SHFB : warning BE0006: Unable to locate any documentation sources for 'C:\Projects\DeltaEngine\DeltaEngineFull.sln' (Configuration: Release Platform: x86) [C:\Sandcastle\Documentation.shfbproj]

"C:\Sandcastle\Documentation.shfbproj" (default target) (1) ->(CoreBuildHelp target) ->
  SHFB : error BE0042: You must specify at least one documentation source in the form of an assembly or a Visual Studio solution/project file [C:\Sandcastle\Documentation.shfbproj]

    1 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.26

However, when running the same "Documentation.shfbproj" via the SHFB GUI everything works fine ("DeltaEngineFull.sln" is displayed under the "Documentation Sources" node)

What is going wrong here?

Coordinator
Dec 19, 2012 at 3:10 PM

Note the Platform value in the warning message.  You probably just need to specify /p:Configuration=Release;Platform=AnyCPU to match the defaults in the GUI.

Eric

 

Dec 19, 2012 at 3:22 PM

Saved my day, that was the problem. Thx!