简体   繁体   English

无法在C#中将dll文件添加到visual studio

[英]Trouble adding dll file to visual studio in C#

I'm new to coding in C#, and I'm using Microsoft Visual Studio 2012. My problem is that when I'm adding a reference from a dll file, it's highlighting in red the import "using alglibnet2;" 我是C#编码的新手,我正在使用Microsoft Visual Studio 2012.我的问题是,当我从dll文件中添加引用时,它突出显示为“使用alglibnet2”导入的红色。 I am trying to add a reference to my code from Alglib to calculate the covariance matrix covm(). 我试图从Alglib添加对我的代码的引用来计算协方差矩阵covm()。 I did put the dll file in a lib folder with my code too. 我确实把dll文件放在我的代码的lib文件夹中。 Any help would be appreciated. 任何帮助,将不胜感激。 thanks! 谢谢!

您需要右键单击该项目并选择Add Reference ,然后导航到程序集的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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