将dll添加到引用后,类库Intellisense不显示 [英] Class Library Intellisense not showing up after adding the dll to the references
问题描述
在C#中,我制作了一个ClassLibrary,它具有一个命名空间和一个Class. 我保存并构建它. 在其他项目中,当我使用它时,我通过浏览到.dll位置将其添加到引用中.
In C#, I made a ClassLibrary that has one Namespace and one Class. I saved it and build it. in other Projects, when i use it, I add it to my references by browsing to the .dll location.
但是问题是它的名称没有显示在Intellisense中.
即当我:using ...
我的dll不显示..
我正在将库导入ConsoleApp.
App和库目标Framework均为.NET Framework 4.0
我制作了他们的Assembly Version 4.0.0.0,所以它们是完全一样的.
But The Problem is that its name is not showing up in the Intellisense.
i.e when I: using ...
my dll doesn't show ..
I'm Importing the library to a ConsoleApp.
both of the App and the library target Framework is .NET Framework 4.0
and I made their Assembly Version 4.0.0.0 so they're the exact same.
是否有设置或我缺少的东西? 我如何使其弹出?
is there a setting or something that I'm missing ? how can i make it pop up ?
我正在使用VS2010 Professional
I'm using VS2010 Professional
谢谢您的帮助
推荐答案
也许这很有用,我遇到了类似的问题,我有一个Web项目,请通过选择项目将引用添加到类库中,但是如果我在类库上进行了更改,我看不到Web Project的智能感知上的更改,尝试了很多之后,我发现在最近添加的参考中,选项"Local Copy"的值设置为"True ,那么我将其更改为虚假的东西,并且一切正常!
Maybe this be usefull, I was having a similar issue, I have a Web project, add the reference to a Class Library by selecting the project, but if I made a change on the class library, I can´t see that change on the intellisense of the Web Project, after try many things, I see that in the recently added reference, the value of the option "Local Copy" was set "True", then I change it to false and everething works!
这篇关于将dll添加到引用后,类库Intellisense不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!