![](/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.