简体   繁体   中英

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. 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. Eg:

AspCommonCode.cs -- project

foobar - website project

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:

    using AspCommonCode;

    string FooBarr = CommonCode.Fooing(true);

The new web project DOES not recognize the public static method called 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文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM