在Visual Studio 2010中打开项目创建后,Visual Studio 2012中编译器的错误行为(Wrong behavior of the compiler in Visual Stu

编程入门 行业动态 更新时间:2024-10-10 07:30:49
在Visual Studio 2010中打开项目创建后,Visual Studio 2012中编译器的错误行为(Wrong behavior of the compiler in Visual Studio 2012 after opening project create in Visual Studio 2010)

我读到将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

更多推荐

本文发布于:2023-08-04 17:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1419237.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编译器   错误   项目   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!