且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio 2013 C# Web 项目生成但 IDE 报告找不到类型或命名空间名称 xxx 错误

更新时间:2023-11-19 19:11:46

我有同样的问题.

虽然项目编译正确,但代码编辑器显示错误找不到类型或命名空间名称_"(您是否缺少 using 指令或程序集引用).

ALthough the project compiles correctly, the code editor shows an error The type or namespace name '_' could not be found (are you missing a using directive or an assembly reference).

有一种解决方法.只需删除 *.SUO 文件并重新打开解决方案.那么对于这唯一的 Session 它有效.不幸的是,在关闭并重新打开解决方案后,问题又回来了.VS 2012 工作正常.

THere is one workaround. Just delete the *.SUO files and re-open the solution. THen for this only Session it works. Unfortunately after closing and reopening the solution the issue is back again. VS 2012 works fine.

似乎是 VS 2013 中的一个错误....

Seems to be a bug in VS 2013....