Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sandcastle Error BE0073 .NET Framework 4.5

I am trying to generate help files using Sandcastle, locally this works find but on my build server I keep receiving the same error message:

SHFB: Error BE0073: A project with a different or higher framework version was 
found but that version (.NETFramework 4.5) or a suitable redirected version 
was not found 

I have checked and I have .NET 4.5.1 installed and 4.5, my projects build without an issue on the server. It is only Sandcastle that is causing a problem.

Does anyone know the cause of this error or how I can diagnose it further?

like image 590
Michael Edwards Avatar asked Jul 25 '26 18:07

Michael Edwards


2 Answers

For some reason the directory:

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5

Was missing on my build server. I copied it from my local machine and everything started to work.

like image 70
Michael Edwards Avatar answered Jul 27 '26 11:07

Michael Edwards


I was experiencing the same issue trying to configure VSTS.

SHFB: Error BE0071: Unable to locate information for the project framework version '.NET Framework 4.6.1' or a suitable redirected version on this system. See error number help topic for details.

The LastBuild.log showed that it was not finding the .NETFramework folder.

Finding tools...
The Sandcastle tools are located in 'd:\a\1\s\packages\EWSoftware.SHFB.2017.1.28.0\Tools\'
The SHFBROOT system environment variable was not found.  This variable is usually created during installation and may require a reboot.  It has been defined temporarily for this process as: SHFBROOT=d:\a\1\s\packages\EWSoftware.SHFB.2017.1.28.0\Tools\
Locating components in the following folder(s):
    d:\a\1\s\Documentation\Project.Docs
    C:\ProgramData\EWSoftware\Sandcastle Help File Builder\Components and Plug-Ins\
    d:\a\1\s\packages\EWSoftware.SHFB.2017.1.28.0\Tools\
    Last step completed in 00:00:00.0360

I ended up setting the Project-specific components path in the project properties to point to the SHFB .NET Framework package and this solved the problem.

like image 24
Jeff Tindall Avatar answered Jul 27 '26 10:07

Jeff Tindall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!