DerBenutzer
DerBenutzer

Reputation: 319

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

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);

Upvotes: 0

Views: 1580

Answers (2)

Haithem KAROUI
Haithem KAROUI

Reputation: 1611

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

Upvotes: 1

romain-aga
romain-aga

Reputation: 1561

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.

Upvotes: 1

Related Questions