VS2012 update3无法在网站项目中添加引用

人气:443 发布:2022-09-22 标签: asp.net visual-studio vs2012 ASP.NET

问题描述

伙计们 我正在使用VS2012终极版,然后用vs2012 update3更新它。我遇到了问题。当我创建一个asp.net网站,然后八个点击bin文件夹添加引用,然后引用管理器对话框出现,但是选择引用后,单击OK按钮,什么都没发生,引用不添加到网站bin项目。我尝试添加这样的任何引用,得到相同的结果。 我不知道为什么,有人遇到过这个问题吗?谢谢你的回复。 在没有更新的情况下尝试vs2012,也无法添加它。

Hi, guys I am using VS2012 ultimate edition , and then update it with vs2012 update3 .I encounter a problem. when I create a asp.net web site , then eight click bin folder to add reference, then reference manager dialog show up, but after select the reference , click OK button , nothing happened, the reference don't add to the website bin items. I try to add any reference like this ,get the same result. I am not sure why ,does anybody encounter this issue ? thanks for your reply. try on vs2012 without update, also fail to add it .

推荐答案

添加参考资料所有你需要的do是右键单击'References'然后单击Add Reference,它将打开Reference Manager窗口,您可以在其中选择要引用的库。编译Web应用程序时,您可以在bin文件夹中看到DLL。 To Add a Reference all you have to do is Right Click on 'References' and then Add Reference, It will open up the Reference Manager Window where you can select the library to reference. When you compile you web application you can see the DLL in bin folder.

感谢您的回复。 project是一个网站而不是窗口应用程序。我发现右键单击bin文件夹然后选择添加引用,结果将在web.config中添加一行< add assembly =Microsoft.TeamFoundation.Client,Version = 11.0.0.0,Culture =在程序集节点下,中性,PublicKeyToken = B03F5F7F11D50A3A>。这是否意味着成功添加参考? 哦,是的。它现在可以工作.VS IDE只需将程序集添加到web.config。 thanks for your reply. project is a web site not window application . I found that right click "bin" folder then select "add reference ", as a result , one line will be added in web.config " <add assembly="Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"> " under assembly node . does this mean adding reference successfully ? oh, yes. it work now .VS IDE just add the assembly into web.config .

480