简体   繁体   English

Visual Studio 2013 C#配置设置

[英]Visual Studio 2013 C# configuration settings

I want to add include directories and libraries in my c# project like i can in my c++ project 我想像在C ++项目中一样在我的C#项目中添加包含目录和库

C++ Project : There are options to include directories and linker dependencies. C ++项目:有一些选项可以包含目录和链接程序依赖项。

在此处输入图片说明

C# Project C#专案

在此处输入图片说明

There does not appear to be an option in the project settings to add those settings. 在项目设置中似乎没有添加这些设置的选项。 I added the path in reference path, but my debugger throws an error. 我在参考路径中添加了该路径,但是调试器抛出了错误。 Right now i've added all the dll in my project\\bin\\debug directory and its working, but i don't want to do it for all the projects. 现在,我已经在我的project \\ bin \\ debug目录中添加了所有的dll及其工作,但是我不想为所有项目都这样做。 Where i can link these diretories ? 我在哪里可以链接这些目录?

您可以通过右键单击解决方案资源管理器下的项目,然后单击“添加引用”,然后浏览或从dll列表中选择,来添加要添加到项目中的库文件的引用。

You can't. 你不能 You have to include references to code files and assemblies one by one. 您必须一一包含对代码文件和程序集的引用。

The linker and compiler for .NET works different than you are used to with c++. .NET的链接器和编译器的工作方式与您使用c ++所用的方式不同。 That's why you can't just link an entire directory containing some code files / assemblies. 这就是为什么您不能仅链接包含某些代码文件/程序集的整个目录。

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

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