错误:需要一个全名程序集 [英] Error: A strongly-named assembly is required

查看:102
本文介绍了错误:需要一个全名程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows窗体项目(VS 2005,.net 2.0)。该解决方案引用了9个项目。一切正常,并且可以在我的一台计算机上正常编译。当我将其移至第二台计算机时,9个项目中的8个可以毫无问题地进行编译。当我尝试编译第9个项目(应用程序的主项目-生成.exe文件以执行应用程序)时,出现以下错误:

I have a Windows forms project (VS 2005, .net 2.0). The solution has references to 9 projects. Everything works and compiles fine on one of my computers. When I move it to a second computer, 8 out of the 9 project compile with no problem. When I try to compile the 9th project (the main project for the application - produces the .exe file to execute the application), I get the following error:

'Error 3: A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)'

该错误的文件位置列为 C: \PATH-TO-APP\LC。

The file location for the error is is listed as "C:\PATH-TO-APP\LC".

我已经检查了项目属性,并且所有项目都设置为以Debug模式构建,而这些项目都不应该被签名。在失败的项目中,它引用的唯一未在任何其他项目中的程序集是Microsoft.VisualBasic(.net 2.0程序集)。因此,我很茫然地找到导致此错误的ID(错误消息中上面引用的文件- LC-不存在。

I have checked in the project properties and all of the projects are set to build in Debug mode, none of them are supposed to be signed. In the project that is failing, the only assembly that it references that is not in any of the other projects is Microsoft.VisualBasic (a .net 2.0 assembly). So I am at a loss to find what ids causing this error (the file referenced above in the error message - "LC" - does not exist.

任何人都知道我如何可以迫使项目接受所有未签名的程序集,或者确定是哪个程序集的罪魁祸首?

Anyone know how I can force the project to accept all unsigned assemblies, or to determine which assembly is the culprit?

在工作环境与开发环境之间,开发环境之间唯一有意义的区别当前是第一个是XP,而这是Vista64。但是,我的一个使用XP的同事遇到了相同的错误。

The only meaningful difference between the dev environments between the dev environment where this worked and the current one is that the first was XP and this is Vista64. However, a colleague of mine who is using XP is getting the same error.

第三-使用的聚会程序集:


  • ComponentFactory.Krypton.Toolkit

  • ComponentFactory.Krypton .Navigator

  • VistaDB.NET20

在解决方案的其他项目中都引用了所有这些

All of these are referenced in other projects in the solution which build with no problems, so it doesn't look like these are the problem.

到目前为止,我已经尝试删除suo文件,全部重建,卸载和重装从解决方案中添加项目,删除并读取引用的程序集。什么都没用。

So far I have tried deleting the suo file, Rebuild All, unloading and reloading projects from the solution, removing and readding referenced assemblies. Nothing has worked.

推荐答案

我刚刚通过构建以下内容:

I just got it to build by doing the following:

该项目的属性中有一个许可证文件。删除文件后(不再需要),该项目能够成功构建。因此,这似乎是罪魁祸首。

There had been a licenses file in the Properties of the project in question. After deleting the file (it was no longer needed) the project was able to build successfully. So it looks like that was the culprit.

这篇关于错误:需要一个全名程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆