1.9.3.0 with VS 2010 SP1 -- Cannot Build Help

Topics: User Forum
Apr 11, 2011 at 2:14 PM
Edited Apr 11, 2011 at 2:15 PM

I have a project that was working just fine until I completed an upgrade to 1.9.3.0 of Help File Builder along with VS 2010 SP1.  The help generation dies with the following error:

Project file contains ToolsVersion="4.0", which is not supported by this version of MSBuild. Treating the project as if it had ToolsVersion="3.5".C:\development\sjdf\BuildOutput\Help\Working\GenerateRefInfo.proj(76,5): error MSB4062: The "SandcastleBuilder.Utils.MSBuild.MRefBuilder" task could not be loaded from the assembly C:\Program Files (x86)\EWSoftware\Sandcastle Help File Builder\\SandcastleBuilder.Utils.dll. Could not load file or assembly 'file:///C:\Program Files (x86)\EWSoftware\Sandcastle Help File Builder\SandcastleBuilder.Utils.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.

I'm not sure how to get past this issue.

 

The complete SHFB log is as follows:

<?xml version="1.0" encoding="utf-8"?><shfbBuild product="Sandcastle Help File Builder Utilities" version="1.9.3.0" projectFile="C:\development\sjdf\src\Printable\RICOH.SJDF.Printable.shfbproj" started="4/11/2011 8:11:54 AM"><buildStep step="Initializing"></buildStep><buildStep step="FindingTools">Finding tools...Found Sandcastle tools in &#39;C:\Program Files (x86)\Sandcastle\&#39;Searching for HTML Help 1 compiler...Found HTML Help 1 compiler in &#39;C:\Program Files (x86)\HTML Help Workshop\&#39;</buildStep><buildStep step="ValidatingDocumentationSources">Validating and copying documentation source informationSource: C:\development\sjdf\src\Printable\RICOH.SJDF.ApplicationServices.Printable\RICOH.SJDF.ApplicationServices.Printable.csproj    Found project &#39;C:\development\sjdf\src\Printable\RICOH.SJDF.ApplicationServices.Printable\RICOH.SJDF.ApplicationServices.Printable.csproj&#39;
Parsing project files    Found assembly &#39;C:\development\sjdf\src\Printable\RICOH.SJDF.ApplicationServices.Printable\bin\Debug\RICOH.SJDF.ApplicationServices.Printable.dll&#39;
References to use:    Castle.Core    Castle.Windsor    jdp.jdf    log4net    Microsoft.CSharp    oai.errorhandling    oai.utility    Rhino.ServiceBus, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL    System    System.Core    System.Data    System.Data.DataSetExtensions    System.EnterpriseServices    System.Web.Services    System.Xml    System.Xml.Linq
Copying XML comments files    C:\development\sjdf\src\Printable\RICOH.SJDF.ApplicationServices.Printable\bin\Debug\RICOH.SJDF.ApplicationServices.Printable.XML -&gt; C:\development\sjdf\BuildOutput\Help\Working\RICOH.SJDF.ApplicationServices.Printable.XML</buildStep><buildStep step="GenerateSharedContent">Generating shared content files (en-US, English (United States))...    Last step completed in 00:00:00.0020</buildStep><buildStep step="GenerateApiFilter">Generating API filter for MRefBuilder...    Last step completed in 00:00:00.0010</buildStep><buildStep step="GenerateReflectionInfo">Generating reflection information...[C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe]Project file contains ToolsVersion=&quot;4.0&quot;, which is not supported by this version of MSBuild. Treating the project as if it had ToolsVersion=&quot;3.5&quot;.C:\development\sjdf\BuildOutput\Help\Working\GenerateRefInfo.proj(76,5): error MSB4062: The &quot;SandcastleBuilder.Utils.MSBuild.MRefBuilder&quot; task could not be loaded from the assembly C:\Program Files (x86)\EWSoftware\Sandcastle Help File Builder\\SandcastleBuilder.Utils.dll. Could not load file or assembly &#39;file:///C:\Program Files (x86)\EWSoftware\Sandcastle Help File Builder\SandcastleBuilder.Utils.dll&#39; or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. Confirm that the &lt;UsingTask&gt; declaration is correct, and that the assembly and all its dependencies are available.    Last step completed in 00:00:00.2600</buildStep><buildStep step="Failed">
SHFB: Error BE0043: Unexpected error detected in last build step.  See output above for details.
</buildStep></shfbBuild>

Coordinator
Apr 11, 2011 at 3:44 PM

Open your project in the Standalone GUI and save it so that it updates the ToolsVersion in the project.  It requires MSBuild 4.0 but is currently trying to use MSBuild 3.5 due to the ToolsVersion setting in the project.

Eric

 

Apr 11, 2011 at 6:15 PM

Did that with the main project before I even posted, but had a second one I forgot to update.  Sure enough, updating that one did the trick.  Thanks.