简体   繁体   English

如何解决 VS2010 构建模式错误

[英]How to troubleshoot VS2010 Build Mode errors

Sorry, I'm not sure how to phrase this question.抱歉,我不知道如何表达这个问题。 I have a issue where I'm building a VS21010 Solution in both debug/Mixed CPU and in release.我有一个问题,我在调试/混合 CPU 和发布中构建 VS21010 解决方案。 From what I can tell in the Configuration Manager all projects are set to build in Debug/Mixed CPU.从我在配置管理器中可以看出,所有项目都设置为在调试/混合 CPU 中构建。 However in my automated build t also builds for release/x64 and this is where it's failing.然而,在我的自动构建中,t 也为 release/x64 构建,这就是它失败的地方。 I get the error that "Project is not selected to build for this solution configuration".我收到“未选择为此解决方案配置构建项目”的错误消息。

Here is what the errors look like:以下是错误的样子:

------ Skipped Rebuild All: Project: ITT_Reset, Configuration: Release Any CPU ------ Project not selected to build for this solution configuration ------ 跳过全部重建:项目:ITT_Reset,配置:释放任何 CPU ------ 未选择为此解决方案配置构建的项目

------ Rebuild All started: Project: Presenters (PresentationLayer\\Presenters\\Presenters), Configuration: Release Any CPU ------ ------ 重建全部开始:项目:PresentationLayer\\Presenters\\Presenters,配置:释放任何CPU ------

No way to resolve conflict between "log4net, Version=1.2.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" and "log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304".无法解决“log4net, Version=1.2.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a”和“log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304”之间的冲突。 Choosing "log4net, Version=1.2.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" arbitrarily.任意选择“log4net, Version=1.2.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a”。

CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc : warning rsOverlappingReportItems: The text box Textbox1' and the line Line2' overlap. CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc:警告 rsOverlappingReportItems:文本框Textbox1' and the line Line2' Textbox1' and the line重叠。 Overlapping report items are not supported in all renderers.并非所有渲染器都支持重叠报表项。

CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc : warning rsOverlappingReportItems: The text box Textbox1' and the line Line1' overlap. CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc:警告 rsOverlappingReportItems:文本框Textbox1' and the line Line1' Textbox1' and the line重叠。 Overlapping report items are not supported in all renderers.并非所有渲染器都支持重叠报表项。

CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc : warning rsOverlappingReportItems: The text box Textbox1' and the text box Textbox27' overlap. CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc:警告 rsOverlappingReportItems:文本框Textbox1' and the text box Textbox27' 重叠。 Overlapping report items are not supported in all renderers.并非所有渲染器都支持重叠报表项。

CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc : warning rsOverlappingReportItems: The text box Textbox1' and the text box Textbox14' overlap. CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc:警告 rsOverlappingReportItems:文本框Textbox1' and the text box Textbox14' 重叠。 Overlapping report items are not supported in all renderers.并非所有渲染器都支持重叠报表项。

CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc : warning rsOverlappingReportItems: The text box Textbox1' and the text box Textbox29' overlap. CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc:警告 rsOverlappingReportItems:文本框Textbox1' and the text box Textbox29' 重叠。 Overlapping report items are not supported in all renderers.并非所有渲染器都支持重叠报表项。

CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc : warning rsOverlappingReportItems: The text box Textbox1' and the text box Textbox34' overlap. CommonDialogs\\ReportViewer\\VitalsHistoryReport\\VitalsHistory.rdlc:警告 rsOverlappingReportItems:文本框Textbox1' and the text box Textbox34' 重叠。 Overlapping report items are not supported in all renderers.并非所有渲染器都支持重叠报表项。

C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Microsoft.Common.targets(3540,5): error MSB3030: Could not copy the file "C:\\Workspaces\\AHLTA\\Current\\Product\\CommonBin\\Dod.Chcsii.Shared.ITT_Reset.dll" because it was not found. C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Microsoft.Common.targets(3540,5): 错误 MSB3030: 无法复制文件“C:\\Workspaces\\AHLTA\\Current\\Product\\CommonBin\\Dod. Chcsii.Shared.ITT_Reset.dll”,因为它没有找到。

COPYEXECENV=N COPYEXECENV=N

COMSUPPORT=N支持=N

------ Rebuild All started: Project: Views (PresentationLayer\\Views\\Views), Configuration: Release Any CPU ------ LC : warning LC0000: 'Unable to find assembly 'C:\\Workspaces\\AHLTA\\Current\\Product\\CommonBin\\Dod.Ahlta.PresentationLayer.Presenters.dll' ------ 重建全部开始:项目:视图(PresentationLayer\\Views\\Views),配置:释放任何 CPU ------ LC:警告 LC0000:'无法找到程序集'C:\\Workspaces\\AHLTA\\ Current\\Product\\CommonBin\\Dod.Ahlta.PresentationLayer.Presenters.dll'

LC : error LC0000: 'Could not load file or assembly 'Keyoti.RapidSpell.NET2.TXSupportv21, Version=5.2.14.1110, Culture=neutral, PublicKeyToken=58d9fd2e9ec4dc0e' or one of its dependencies. LC:错误 LC0000:“无法加载文件或程序集“Keyoti.RapidSpell.NET2.TXSupportv21,版本=5.2.14.1110,Culture=neutral,PublicKeyToken=58d9fd2e9ec4dc0e”或其依赖项之一。 Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))'无效的指针(来自 HRESULT 的异常:0x80004003 (E_POINTER))'

You could have a few problems:你可能有几个问题:

  1. The libraries you want to use like Dod.Chcsii.Shared.ITT_Reset.dll may not be x64.您要使用的库(如Dod.Chcsii.Shared.ITT_Reset.dll可能不是 x64。 You can only include libraries that are the same number of bits as your Project, ie 32 bit or 64 bit (or 16 bit).您只能包含与您的项目具有相同位数的库,即 32 位或 64 位(或 16 位)。 So lock in your Project to either 32 or 64 bit (if you use 3rd party DLLs).因此,将您的项目锁定为 32 位或 64 位(如果您使用 3rd 方 DLL)。

  2. Looks like your reference paths, or reference DLLs are not configured.看起来您的引用路径或引用 DLL 未配置。 Whenever 'could not load file or assembly' errors occur, one or more DLLs are missing.每当出现“无法加载文件或程序集”错误时,就会丢失一个或多个 DLL。 Don't forget extra dependencies not directly used too - where a DLL you use directly, may also need 10 more DLLs under the covers.不要忘记也没有直接使用的额外依赖项 - 在直接使用 DLL 的情况下,可能还需要 10 个以上的 DLL。

  3. Ignore the other warnings, fix the 'not found' stuff first.忽略其他警告,首先修复“未找到”的内容。

  4. Use PROJECT references instead of DLL references wherever possible.尽可能使用 PROJECT 引用而不是 DLL 引用。 This should sync the version conflicts better.这应该更好地同步版本冲突。 Or else re-compile your own DLLs that are consumed by this Project.或者重新编译您自己的由该项目使用的 DLL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM