【发布时间】:2012-05-20 12:12:25
【问题描述】:
谁能帮我通过命令行编译一些 c# 文件? 我有 4 个文件要编译,Main、Form1(使用 2.cs 文件)和项目中使用的另一个类。
我想在命令行中编译这个项目,以便添加 /t:library 开关(如本教程中的:http://dotnetslackers.com/articles/csharp/WritingAnActiveXControlInCSharp.aspx)。
但是,在使用“csc /t:library Program1.cs MainForm.cs MainForm.Designer.cs EigenObjectRecognizer.cs”后,我得到了缺少程序集引用的错误,例如:
\Project\FaceRecProOVaspVer\FaceRecProOV\MainForm.cs(14,15): error CS0234: The type or namespace name 'Structure' does not exist
in the namespace 'Emgu.CV' (are you missing an assembly reference?)
我确实安装了 EMGU 二进制文件。我认为我需要使用该文件夹中的一些 .dll,例如 EMGU.CV.dll?
【问题讨论】:
-
当你有 Main 和 Form1 时,你很可能不想要
/t:library
标签: c# .net compiler-construction command-line csc