BUILDASSEMBLER : error Could not find a part of the path 'C:\Program Files\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v2.0'.

Topics: User Forum
Feb 27, 2011 at 10:06 PM

 I am getting following error while building a project via SHFB. My assembly is built in .Net v 2.0. I don't know why it is searching for FSharp.

In the project properties i have also setup the framework version to 2.0

 

  Info: CopyFromIndexComponent: Instantiating component.
  Info: CopyFromIndexComponent: Loaded 0 copy components.
  Info: ForEachComponent: Loaded 1 subcomponents.
  Info: ForEachComponent: Instantiating component.
  Info: ForEachComponent: Loading subcomponents.
  Info: CopyFromIndexComponent: Instantiating component.
  Info: CopyFromIndexComponent: Loaded 0 copy components.
  Info: ForEachComponent: Loaded 1 subcomponents.
  Info: IfThenComponent: Instantiating component.
  Info: SyntaxComponent: Instantiating component.
  Info: SyntaxComponent: Loaded 3 syntax generators.
  Info: CopyFromIndexComponent: Instantiating component.
  Info: CopyFromIndexComponent: Searching for files that match 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\en\*.xml'.
  Info: CopyFromIndexComponent: Searching for files that match 'C:\Program Files\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v2.0\*.xml'.
BUILDASSEMBLER : error : BuildAssembler: An error occured while initializing the build component 'Microsoft.Ddue.Tools.CopyFromIndexComponent' in the component assembly 'C:\Program Files\Sandcastle\ProductionTools\BuildComponents.dll'. The error message and stack trace follows: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v2.0'.
     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
     at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
     at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
     at System.IO.Directory.GetFiles(String path, String searchPattern)
     at Microsoft.Ddue.Tools.IndexedDocumentCache.AddDocuments(String wildcardPath)
     at Microsoft.Ddue.Tools.IndexedDocumentCache.AddDocuments(String baseDirectory, String wildcardPath, Boolean recurse)
     at Microsoft.Ddue.Tools.CopyFromIndexComponent..ctor(BuildAssembler assembler, XPathNavigator configuration)
    Last step completed in 00:00:20.3600
-------------------------------

SHFB: Error BE0043: Unexpected error detected in last build step.  See output above for details.

 

Coordinator
Feb 27, 2011 at 11:19 PM

This has been fixed.  Uninstall SHFB, re-download it and install SHFB again.

Eric

 

Feb 28, 2011 at 2:07 AM

It worked !!! Thanks Eric, you saved lots of my time. Cheers !!!