神秘消失参考 [英] Mysterious disappearing reference

查看:116
本文介绍了神秘消失参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有什么似乎是一个很奇怪的问题,Windows窗体应用程序。我是一个Web开发人员,我有开发Windows窗体应用程序的经验有限。我工作在一个电子商务网站,它存储产品图片在数据库中斑点。为了使其更容易批量导入图片,我编写使用现有的网站BLL库中的小窗口形式的实用工具。我使用Visual Studio 2010的C#和.NET 4。我在我的解决方案中创建一个新的Windows窗体项目,并增加了一个参考BLL项目。我开始编码和使用说明我的code增加预期智能感知与我BLL类等工作corectly然后我建这个项目,一切工作,它失败了,它抱怨每行的code表示refered到从BLL项目包括using语句,和智能感知任何东西不再工作从BLL项目的任何东西。基本上你所期望的,如果没有参考BLL项目。如果我删除引用,然后重新添加,或添加AR参考解决方案的另一个projecct,智能感知回来,所有的编译器错误的disapear。然后,如果我再次构建它们都重新出现和智能感知不再工作。

I have what seems to be a very strange problem with a windows forms application. I am a web developer and I have limited experience of developing windows forms application. I am working on an ecommerce web site which stores product images in the database as blobs. In order to make it easier to bulk import images I am writing a small windows forms utility that uses the existing website bll library. I am using Visual studio 2010 c# and .net 4. I created a new windows forms project in my solution and added a reference to the bll project. I started coding and added using statements to my code, everything was working as expected intelisense worked corectly with my bll classes etc. Then i built the project and it failed, it complained about every line of code that refered to anything from the bll project including the using statements, and intelisense no longer worked for anything from the bll project. Basically what you would expect if there were no reference to the bll project. If i remove the reference and then re add it, or add ar reference to another projecct in the solution, intelisense comes back and all of the compiler errors disapear. Then if i build again they all reappear and intelisense no longer works.

我在想什么,什么是地狱可能是这里发生了。

What am i missing, what the hell might be going on here.

推荐答案

您库可能对其他.NET库如的System.Web,你需要在你的表单应用程序中引用的依赖。它可以创建这种行为。

Your library possibly has dependencies on other .NET libraries such as System.Web that you need to reference in your Forms app. That can create this sort of behaviour.

这篇关于神秘消失参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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