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