简体   繁体   English

Visual Studio 2008中的调试错误

[英]Debugging error in Visual Studio 2008

Debugging error : 调试错误:

Error while trying to run project. 尝试运行项目时出错。 Could not load file or assembly ' consoleapp2' or one of its depenencies. 无法加载文件或程序集“ consoleapp2”或其依赖关系之一。 The module was expected to contain an assembly manifest. 该模块应包含程序集清单。

The "module was expected to contain an assembly manifest" part of the error suggests that you may be trying to link to an unmanaged executable. 错误的“模块应包含程序集清单”部分表明您可能正在尝试链接到非托管可执行文件。

This thread suggests the error can be caused by linking to assemblies with the same name. 该线程表明该错误可能是由于链接到具有相同名称的程序集引起的。

You're trying to use an assembly that's not there, or is there, but can't load. 您正在尝试使用一个不存在或不存在但无法加载的程序集。 Could be a couple of things. 可能有两件事。 Be sure to include it and its dependencies into your solution, and make sure none of your files have the same name (regardless of extensions), as dave suggested. 确保将其及其依赖项包含到您的解决方案中,并确保没有文件像dave建议的那样具有相同的名称(无论扩展名如何)。

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

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