Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在visual studio 2012中添加用dll文件替换.cs_C#_Visual Studio 2012 - Fatal编程技术网

C# 如何在visual studio 2012中添加用dll文件替换.cs

C# 如何在visual studio 2012中添加用dll文件替换.cs,c#,visual-studio-2012,C#,Visual Studio 2012,我已将所有.cs文件转换为dll文件,但如何在visual studio 2012中将.cs文件替换为dll文件。请帮帮我 提前谢谢 我一定要提到什么吗?? 请告知替换.cs文件的确切过程 1) build the project containing the .cs file 2) get the dll from the bin folder of the project containing the .cs file 3) add reference the dll

我已将所有.cs文件转换为dll文件,但如何在visual studio 2012中将.cs文件替换为dll文件。请帮帮我

提前谢谢

我一定要提到什么吗?? 请告知替换.cs文件的确切过程

   1) build the project containing the .cs file
    2) get the dll from the bin folder of the project containing the .cs file
    3) add reference the dll file to the main project you need

通过转换.cs文件,你的意思是用它们构建程序集吗?@BolucPapuccuoglu我的意思是通过这个过程将它们编译为dll文件csc/t:source.cs->source.dllSo,如果你有十个包含十个类的.cs文件,你现在有十个.dll文件了?@BolucPapuccuoglu是的,现在的问题是如何替换它们?您应该从这十个.cs文件中只构建一个dll。这被称为是萨贾德答案的第一部分的集合。然后,您应该按照他的回答的后续部分进行操作。但是如何引用dll?解决方案资源管理器上下文菜单“添加”reference@AbhiKhatri:请检查。。!!我已经用图片编辑了。。!!这是个错误!你真的认为说这是一个错误吗!我们能帮你吗?至少提供您遇到的错误消息。