【问题标题】:'Microsoft.Practices.EnterpriseLibrary.Caching.Cache' is defined in an assembly that is not referenced'Microsoft.Practices.EnterpriseLibrary.Caching.Cache' 在未引用的程序集中定义
【发布时间】:2013-09-28 14:38:06
【问题描述】:

错误 24 类型“Microsoft.Practices.EnterpriseLibrary.Caching.Cache”在未引用的程序集中定义。您必须添加对程序集 'Microsoft.Practices.EnterpriseLibrary.Caching, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

的引用

在构建我们的项目时出现以下错误。 我在我们自己的缓存类中实现了一些额外的功能,这些缓存类继承自 Microsoft.Practices.EnterpriseLibrary.Caching.Cache。当我在另一个项目中使用这个 ddl 时 他们给出以下错误..请帮助我

【问题讨论】:

    标签: c# asp.net .net caching .net-assembly


    【解决方案1】:

    您可以尝试使用签署程序集的实际公钥。

    也可以查看Referencing Enterprise Library Assemblies

    【讨论】:

    • 我不知道我在哪里检查程序集的实际公钥...。我检查了您的参考,但发生了同样的错误。如果您有任何其他解决方案,请分享...谢谢
    • @user2826455:- 使用以下命令,sn –T myDLL.dll 这将为您提供公钥令牌。请记住一件事,这仅在必须对程序集进行强签名时才有效。
    猜你喜欢
    • 2014-04-08
    • 2011-07-11
    • 2013-09-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-16
    • 2014-08-15
    • 2016-05-01
    相关资源
    最近更新 更多