“已经导入了组装相同的简单名称"错误 [英] "Assembly Same Simple Name already been imported" error
问题描述
这是CLR项目.我正在导入两个具有相同名称quizz.dll
的DLL文件(我将旧版本重命名为legacyquizz.dll
),并且将较新版本的quizz.dll
包含在旧版转换器测试项目中. (正在测试的旧版转换器项目仅导入旧版quizz.dll
.
This is a CLR project. I'm importing two DLL files with the same name, quizz.dll
(I rename the old version as legacyquizz.dll
) and I include the newer version as quizz.dll
into a legacy converter test project. (The legacy converter project being tested only imports the old quizz.dll
).
这是我遇到的错误. .
This is the error I'm getting . . .
具有简单名称"Quizz"的程序集, 版本= 2.0.0.1,文化=中性, PublicKeyToken = null已被导入.
An assembly with the same simple name 'Quizz, Version=2.0.0.1, Culture=neutral, PublicKeyToken=null has already been imported.
尝试删除其中一个参考或对其进行签名 并排启用. C:\ . . . \ Quizz.dll
Try removing one of the references or sign them to enable side-by-side. c:\ . . . \Quizz.dll
它指向的路径是quizz.dll的较新版本的目的地.
The path it's pointing to is the destination of the newer version of quizz.dll.
我在legacyquizz.dll文件上使用了外部别名:
I'm using an external alias on the legacyquizz.dll file:
extern alias legacy;
在这种情况下,简单名称"是什么?
What is a "simple name" in this context?
推荐答案
您可以通过打开项目属性并选择Assembly Information来查看简单名称:
You can see the simple name by opening project properties and selecting Assembly Information:
要对部件进行签名,您需要选择签名"选项卡并创建或选择签名密钥:
To sign the assembly you need to select Signing tab and create or select signing key:
这篇关于“已经导入了组装相同的简单名称"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!