c# How to add a reference from source code to my project

百般思念 提交于 2020-07-11 05:11:41

问题


Hi I have a simple question, which i can not answer by myself. There is a project on codeplex:

https://triangle.codeplex.com/releases/view/97021

I downloaded the sourcecode and expected there to be an .dll i can add as a resource reference to my own own project. However it seems like it is all still source code with a lot of classes and stuff.

How can I connect this code to my own project, so that I can use the classes with something like:

using TriangleNet.Geometry;

UseMethodXYZ(values);

回答1:


Add a library project with the downloaded code to your solution. Then reference it in your own project, and voilà !

Otherwise build the downloaded code as library project and reference the built dll in your own project.




回答2:


you can open the Triangle solution,

Build it, and then right click on the solution in visual studio --> open folder in file explorer --> go to Triangle/Bin/Debug where you will find the triangle.dll --> copy paste it in your solution bin/debug folder and then import the dll as add reference to your project.

HK



来源:https://stackoverflow.com/questions/37318651/c-sharp-how-to-add-a-reference-from-source-code-to-my-project

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