[英]Copied ASP.net web forms project to another server; using clauses are correct, but some static classes are not recognizable
Ok, so I am maintaining some legacy web form web site application. 好的,所以我要维护一些旧式Web表单网站应用程序。 On old box, the links between the projects are ok and intelisense recognizes the static public classes.
在旧的框上,项目之间的链接可以,并且智能识别静态的公共类。 After moving the project to a new and faster development box, web forms do not "see" the utility classes.
将项目移至新的更快的开发盒之后,Web表单不会“看到”实用程序类。 Eg:
例如:
AspCommonCode.cs -- project AspCommonCode.cs-项目
foobar - website project foobar-网站项目
While in the codebehind program called webform.aspx.cs I cannot see a common piece of code in AspCommonCode.cs in intelisense and the code does not compile because it cannot find the new static, public method in AspCommonCode. 在名为webform.aspx.cs的代码隐藏程序中,我看不到intelisense的AspCommonCode.cs中的通用代码,并且代码无法编译,因为它无法在AspCommonCode中找到新的静态公共方法。
webform.aspx.cs: webform.aspx.cs:
using AspCommonCode;
string FooBarr = CommonCode.Fooing(true);
The new web project DOES not recognize the public static method called Fooing... 新的Web项目无法识别称为Fooing ...的公共静态方法。
I am assuming I have to rebuild something or clear out something. 我假设我必须重建某些东西或清理一些东西。 This exact same thing works on the old box with the old project settings.
这与具有旧项目设置的旧盒子完全相同。
解决方案是只重建.sln文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.