[英]The type or namespace name 'ContractClassFor' could not be found (are you missing a using directive or an assembly reference?)
I am using the following code. 我使用以下代码。
[ContractClassFor(typeof(IWindow))]
Why the error "The type or namespace name 'ContractClassFor' could not be found (are you missing a using directive or an assembly reference?)" is coming? 为什么错误“无法找到类型或命名空间名称'ContractClassFor'(您是否缺少using指令或程序集引用?)”即将推出?
It is happened because of an ambiguity issue. 这是因为模棱两可的问题。 I removed Microsoft.Contracts from reference.
我从引用中删除了Microsoft.Contracts。 Now its working fine.
现在它的工作正常。 Thanks Mr.Frebin Francis for your support.
谢谢弗雷宾弗朗西斯先生的支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.