【问题标题】:Working with Sandcastle and Compact Framework projects使用 Sandcastle 和 Compact Framework 项目
【发布时间】:2012-01-20 04:30:29
【问题描述】:

我有一组 .Net Compact Framework 3.5 项目,已包含在 Sandcastle 项目中。 在 VS 2008 中,编译失败并显示此日志(PATH 是解决方案的路径):

Step 1 of 12: Change Directory

Changing current directory from "PATH\Documentation\Help\" to "PATH\Documentation\buildhelp"

Step 1 Time Elapsed: 00:00:00.0156256

Step 2 of 12: Execute MRefBuilder

C:\Program Files (x86)\Sandcastle\ProductionTools\MRefBuilder /config:"PATH\Documentation\Help\Presentation\Style\Configuration\MRefBuilder.config" /out:reflection.org /internal- /dep:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll","C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll","C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll","C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll","C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll","C:\Windows\assembly\GAC_MSIL\System.Data.SqlXml\2.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll","C:\Windows\assembly\GAC_MSIL\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Security.dll","C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll","C:\Windows\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll","C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization.Formatters.Soap\2.0.0.0__b03f5f7f11d50a3a\System.Runtime.Serialization.Formatters.Soap.dll","C:\Windows\assembly\GAC_MSIL\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll","C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll","C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll","C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" "PATH\DesktopTestsLauncher\bin\Debug\DesktopTestsLauncher.exe" "PATH\HSNDemo\bin\Release\HSNDemo.exe" "PATH\HSN_Coordinator Bluetooth IMAGE\BTWrapper\bin\Release\BTWrapper.dll" "PATH\HSN_Coordinator Bluetooth IMAGE\HSN_Coordinator\bin\Release\HSN_Coordinator.dll" "PATH\PortableStationLibrary\bin\PDA\PortableStationLibrary.dll" "PATH\PortableStationTests\bin\Debug\PortableStationTests.exe" "PATH\PortableStation\bin\Debug\PortableStation.exe"

MrefBuilder (v2.6.10621.1)
Copyright ¸ Microsoft 2006
Error: A file access error occured while attempting to load the addin assembly 'PATH\Documentation\Help\Presentation\Style\Configuration\MRefBuilder.exe'. The error message is: No se puede cargar el archivo o ensamblado 'file:///PATH\Documentation\Help\Presentation\Style\Configuration\MRefBuilder.exe' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.
Non-zero exit code: 1

Step 2 DaveSexton.DocProject.Engine.ExternalProcessException: Execute MRefBuilder:
The "C:\Program Files (x86)\Sandcastle\ProductionTools\MRefBuilder" process failed with exit code: 1.

Successful Steps: 1 of 12
Failed Steps: 1

Documentation help build failed.

如果我使用 DocProject 外部 UI,我会收到以下消息:“未找到导入的项目 C:\Windows\Microsoft.NET\Framework64\v3.5\Microsoft.CompactFramework.CSharp.targets。”

我已经安装了 .Net CF 电动玩具,并且我在 32 位版本的框架中拥有该文件。如何让 SandCastle 使用 32 位版本???

【问题讨论】:

    标签: compact-framework sandcastle


    【解决方案1】:

    您应该告诉使用 X86 Build 平台。如果是自动的,它将在 Framework64 目录中搜索。看看这篇博文是否有帮助:http://www.simonrhart.com/2010/06/automating-your-windows-mobile-6x.html

    它与 TFS Build 有关,但 MSBUILD 平台应该是 X86 而不是 Auto。希望这可以帮助您找到解决方案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-16
      • 2010-09-05
      • 2012-04-06
      • 2011-01-03
      • 1970-01-01
      • 1970-01-01
      • 2010-12-30
      • 2010-12-11
      相关资源
      最近更新 更多