Visual Studio无法识别新类 [英] Visual Studio is not recognizing new classes

查看:158
本文介绍了Visual Studio无法识别新类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2008 SP1,正在使用VB.NET中的Web项目.当我添加新的类文件(当然是App_Code)时,该问题无法识别.所有旧的类文件都可以正常工作,但新的类则不能.我重新启动计算机,仍然是同样的问题.

I'm using visual studio 2008 SP1, I'm working with a web project in VB.NET. the problem when I add new class file (of-course in App_Code) it doesn't recognize it. all the old class files are working fine, but the new ones aren't. I restarted my computer and still the same problem.

任何想法

推荐答案

将工作类的属性与无法识别的类进行比较.具体来说,是构建操作".它应该可以解决问题.

compare properties of working class with un recognised class. Specifically, "Build Action". It should resolve the problem.

如果不让我知道.:)

这篇关于Visual Studio无法识别新类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆