没有System.Runtime.Caching可用吗? [英] No System.Runtime.Caching available?

查看:163
本文介绍了没有System.Runtime.Caching可用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类库的输出类型,以及 .NET Framework 4的目标框架。



根据我读过的所有内容,我应该拥有它可用,但是我在System.Runtime命名空间中看到的只是以下内容:

  CompilerServices 
ConstrainedExecution
ExceptionServices
托管
InteropServices
远程处理
序列化
版本控制

有什么想法吗?

解决方案

您只需要添加对的引用System.Runtime.Caching 程序集。


  1. 在解决方案资源管理器中,右键单击参考

  2. 选择添加参考

  3. 从左侧菜单中选择程序集

  4. 查找(或过滤)并添加 System.Runtime.Caching.dll

它不是类库中默认引用集的一部分,但您应该可以毫无问题地添加它。 / p>

output type of 'Class Library', and a target framework of '.NET Framework 4'.

According to everything I've read, I should have it available, but all I'm seeing in the System.Runtime namespace is the following:

CompilerServices
ConstrainedExecution
ExceptionServices
Hosting
InteropServices
Remoting
Serialization
Versioning

Any ideas?

解决方案

You just need to add a reference to the System.Runtime.Caching assembly.

  1. In solution explorer, right-click on "References"
  2. Select "Add reference"
  3. From left side menu select "Assemblies"
  4. Look for (or filter) and add System.Runtime.Caching.dll.

It's not part of the default set of references in a class library, but you should be able to add it with no problems.

这篇关于没有System.Runtime.Caching可用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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