[wix-devs] Error BE0071 when building dtfref.shfbproj in release configuration

Bob Arnson bob at firegiant.com
Mon Oct 3 17:49:51 PDT 2016


1. Shouldn't need to be elevated.
2. Can run from normal console window, just have to point to MSBuild.exe.
3. Might be missing targeting pack. Try adding `EWSoftware.SHFB.NETFramework` version 4.6.2 to tools\Nuget.targets.

-----Original Message-----
From: wix-devs [mailto:wix-devs-bounces at lists.wixtoolset.org] On Behalf Of Jay Michaud
Sent: Monday, 3 October, 2016 19:31
To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
Subject: [wix-devs] Error BE0071 when building dtfref.shfbproj in release configuration

I have been a user of the WiX Toolset for a while, and I am looking to get started as a WiX Toolset developer. I started following the steps on the WiX Toolset Development<http://wixtoolset.org/development/> page and the Building WiX<http://wixtoolset.org/development/building-wix/> page, but I hit a snag when attempting to build both WiX 3 and WiX 4 in release configuration. With no changes by me, the release configuration build process fails on both repositories. (The default debug build works fine.) Specifically, the failure occurs when attempting to build the Sandcastle Help File Builder project. I'll focus on WiX 3 here for the sake of having a single problem to discuss.



Tl;dr: When I build WiX 3 in release configuration straight from the master repository<https://github.com/wixtoolset/wix3> with no changes, the build fails on dtfref.shfbproj with error BE0071.



Full Description:

Build system: Windows 10 v1511 x64; Visual Studio Community 2015 Update 3

Command Environment: VS2015 x86 Native Tools Command Prompt, elevated

Current Directory: "C:\Users\username\Documents\Visual Studio 2015\Projects\wix3"

Command: msbuild /p:Configuration=Release

Output:

[All but the last few lines omitted.]



Build FAILED.



[Yellow text follows]

"C:\Users\username\Documents\Visual Studio 2015\Projects\wix3\wix.proj" (default target) (1) ->

"C:\Users\username\Documents\Visual Studio 2015\Projects\wix3\src\dtf\dtf.proj" (default target) (14) ->

"C:\Users\username\Documents\Visual Studio 2015\Projects\wix3\src\dtf\Documents\Guide\dtfguide.helpproj" (default target) (39) ->

"C:\Users\username\Documents\Visual Studio 2015\Projects\wix3\src\dtf\Documents\Reference\dtfref.shfbproj" (default target) (40) ->

(CoreBuildHelp target) ->

  SHFB : warning BHT0001: Unable to get executing project:  Unable to obtain matching project from the global collection.  The specified project will be loaded but command line property overrides will be ignored. [C:\Users\username\Documents\Visual Studio 2015\Projects\wix3\src\dtf\Documents\Reference\dtfref.shfbproj]



[Red text follows]

"C:\Users\username\Documents\Visual Studio 2015\Projects\wix3\wix.proj" (default target) (1) ->

"C:\Users\username\Documents\Visual Studio 2015\Projects\wix3\src\dtf\dtf.proj" (default target) (14) ->

"C:\Users\username\Documents\Visual Studio 2015\Projects\wix3\src\dtf\Documents\Guide\dtfguide.helpproj" (default target) (39) ->

"C:\Users\username\Documents\Visual Studio 2015\Projects\wix3\src\dtf\Documents\Reference\dtfref.shfbproj" (default target) (40) ->

(CoreBuildHelp target) ->

  SHFB : error BE0071: Unable to locate information for the project framework version 'v4.0.30319' or a suitable redirected version on this system.  See error number help topic for details. [C:\Users\username\Documents\Visual Studio 2015\Projects\wix3\src\dtf\Documents\Reference\dtfref.shfbproj]



    1 Warning(s) [in yellow]

    1 Error(s) [in red]



Some notes on my troubleshooting so far:

  *
The documentation for this error<https://ewsoftware.github.io/SHFB/html/31414af7-b465-4dc3-9454-19a2d01953bc.htm> suggests making changes to the project, which I am hesitant to do, since it obviously must work correctly as-is on the build servers and since this would get me out of sync with the master repository.
  *
Google helped me find an old thread from wix-devs on nabble.com<http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-Building-a-Signed-WiX-3-10-Build-td7600867.html> that talked about this issue, but there was no solution there.
  *
I noticed that the version of SHFB used by WiX<https://www.nuget.org/packages/EWSoftware.SHFB/2014.11.22> is several versions old, so on the hypothesis that a newer version might be needed for the latest version of Visual Studio, I upgraded it in the project to the latest version<https://www.nuget.org/packages/EWSoftware.SHFB/2016.9.17>, but that did not help either (and if it had, I would have had the problem of being out of sync with the master repository).
  *
Just to clarify, when I build in debug configuration with just the unadorned "msbuild" command, the build succeeds without any errors or warnings.

I figure that something has to be wrong with my build environment because the code obviously builds on the WiX build servers as-is.



What's happening here, and what do I need to change?



Thank you,

Jay Michaud

____________________________________________________________________
WiX Toolset Developer Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-devs mailing list