How to add a reference to System.Numerics.dll

杀马特。学长 韩版系。学妹 提交于 2019-11-26 11:28:33

问题


I want to use the BigInteger class from the System.Numerics but if i want to write

using System.Numerics;

Numerics is not found. I searched the web, and I found that I have to add a reference to System.Numerics.dll, but how can I do that?


回答1:


http://msdn.microsoft.com/en-us/library/7314433t(v=vs.80).aspx

From MSDN:

  1. In Solution Explorer, select the project.
  2. On the Project menu, choose Add Reference.
  3. The Add Reference dialog box opens.
  4. Select the tab indicating the type of component you want to reference.
  5. In the top pane, select the component you want to reference, and then click the Select button. Press CTRL while clicking to select multiple components.



回答2:


Right click on "References" in the solution explorer and click on "Add Reference" as shown below in the image.




回答3:


If you are using .NET 4.0, you can right click in References -> add reference -> In the .NET tab, look for System.Numerics.dll




回答4:


in Visual Studio, go to Solition Exporer, expand your project, right click in a folder called "References" and click "Add References", browse the references (assemblies) until you find the one you want. If you're using VS 2010, you can simply type "system.numerics" on the search up top. Then just select the reference and click Add, then Close.




回答5:


Right click the Reference folder in your solution and choose Add Reference. Then go to <systemDrive>:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089 (That's what it is for me; your path might be different.)



来源:https://stackoverflow.com/questions/9824479/how-to-add-a-reference-to-system-numerics-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!