c#如何将源代码中的引用添加到我的项目中 [英] c# How to add a reference from source code to my project
问题描述
我有一个简单的问题,我自己无法回答.有一个关于 codeplex 的项目:
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
我下载了源代码,并希望有一个 .dll,我可以将其添加为我自己的项目的资源引用.然而,它似乎仍然是包含很多类和东西的源代码.
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);
推荐答案
将包含下载的代码的库项目添加到您的解决方案.然后在你自己的项目中引用它,瞧!
Add a library project with the downloaded code to your solution. Then reference it in your own project, and voilà !
否则将下载的代码构建为库项目,并在您自己的项目中引用构建的 dll.
Otherwise build the downloaded code as library project and reference the built dll in your own project.
这篇关于c#如何将源代码中的引用添加到我的项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!