简体   繁体   中英

The type or namespace does not exist

I am unable to build my project because it thinks a namespace doesn't exist.

There is no red line in the editor, and I can navigate to the types in that namespace by hitting F12 on the type.

Why is this incorrect error msg coming through?

I have tried cleaning/building, and rebuilding the project, as well as restarting VS.

在此处输入图片说明

I don't know if this helps: try to unload the project and load it again . Right cklick on the Project in Project Explorer and unload this. here example in German Context Menu

As Stefan said try unload and load the project.

It looks like the issue is happening in your testing project. Try to delete and re-add the corresponding references.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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