我读到将Visual Studio 2012用于Visual Studio 2010编写的项目没有问题。 我在vs 2012中打开我的项目并启动它,一切正常。 我可以在现有的类和页面中进行更改,不会出现任何问题。 之后,我决定添加新类,这里没有任何工作正常:
引用其他类,如果我添加DataSet并使用System.Data添加,则不会显示为特殊字(绿色) 没有错误没有关于编译器显示的新类的警告。 如果我写12312312并且构建没有错误显示。错误显示在浏览器中,但我更喜欢使用有效的编译器。
你知道问题是什么以及如何解决?
I read that there is no problem to use Visual Studio 2012 for projects written of Visual Studio 2010. I open my project in vs 2012 and start it, everything was working. I can make changes in the existing classes and pages, no problems occur. After that I decide to add new class and here nothing was working correctly:
References to the other classes, if I add DataSet and add using System.Data it is not shown like special word(in green) No errors no warning about new classes shown by the compiler. If I write 12312312 and build no error is shown.Errors are shown in the browser, but I strongly prefer to have a working compiler.
Do you know what is the problem and how to fix it ?
最满意答案
清洁和重建是开始的方式。
有关更多详细信息,请查看此帖子:
Visual Studio 2012 - Intellisense有时会消失/破碎
如果编译器没有显示错误,请试一试:
删除此文件夹中的文件:
%APPDATA%\漫游\微软\ VisualStudio的\ 11.0 \ ReflectedSchemas
从智能感知中拉出,错误突出显示在VS2012中默认不起作用
Cleaning and Rebuilding is the way to start.
For more detailed info, take a look at this post:
Visual Studio 2012 - Intellisense sometimes disappearing / broken
For the Compiler not showing errors, give this a shot:
Delete the files in this folder:
%AppData%\Roaming\Microsoft\VisualStudio\11.0\ReflectedSchemas
Pulled from Intellisense and error highlighting not working by default in VS2012
更多推荐
发布评论