【发布时间】:2018-07-15 21:05:25
【问题描述】:
我的目标是从命令行构建一个 dll,因为我没有安装 Visual Studio。
到目前为止,我已经创建了一个名为AuthenticatedProxy.cs 的类文件并进入命令行并运行以下命令:
C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe C:\AuthenticatedProxy.cs
输出是错误提示:'AuthenticatedProxy.exe' does not contain a static 'Main' method suitable for an entry point.(注意我的类文件没有main方法)
如何将类文件编译成 dll?我有正确的命令吗?
【问题讨论】:
-
作为一个初学者,你应该得到一个像 VS 这样的 IDE 来为你做这件事。当您足够好时,您可以切换到构建机器的命令行版本。不要重新发明轮子
-
@Steve 不幸的是,由于遇到的障碍,我无法获得 IDE。
标签: c# .net build compiler-errors csc