繁体   English   中英

您必须添加对程序集的引用…而无需web.config文件

[英]You must add reference to assembly… without web.config file

我正在使用visual studio 2015编写C#。 我有一个逻辑项目,它是一个类库(程序包),还有一个UI项目,它是控制台应用程序(程序包),我将两者与引用连接在一起。

CS0012 The type object is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”错误: CS0012 The type object is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” CS0012 The type object is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”

我已经在网上搜索过,发现的解决方案是更改web.config文件,但我没有。 另一个解决方案是添加对System.Runtime.dll的引用,但这样做时会出现1135错误,例如“未定义或导入预定义类型System.Object”。 那么还有什么其他解决方案呢?

我现在没有安装VS 2015。 但据我所知,它与2017年相同:

项目>参考>添加参考>装配

暂无
暂无

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

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