且构网

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

Visual Studio 2010不会捕获编译时的编译错误

更新时间:2022-06-24 03:07:19

我有类似(如果不是相同的)编译ASP.net 4.0 WebForm。我有一个页面是一个现有的页面的标记的副本,但代码隐藏尚未创建。作为示例,标记具有带有点击事件的ASP:Button,但是事件处理程序尚未在代码中声明。当我做一个完整的构建/重建/清洁等,没有找到错误。我打开页面,并引发一个编译器错误。据我所知,我没有对任何地方的设置进行任何更改,刚刚开始这样做最近。此外,似乎我的断点也不会被捕获。我不知道这两个是否相关,但他们确实开始发生在同一时间。

I'm having similar (if not identical) problems with compiling an ASP.net 4.0 WebForm. I have a page that is a copy of an existing page in terms of markup, but the code-behind has not been created. As an example, the markup has an ASP:Button with a click event, but the event handler has not been declared in the codebehind yet. When I do a full Build/Rebuild/Clean etc., no errors are found. I open the page, and a compiler error is thrown. As far as I know I haven't made any changes to settings anywhere, just started doing this recently. Additionally, it appears that my break points aren't being caught anymore either. I'm not sure if the two are related, but they did start happening around the same time.