c# - 在单声道 (mac) 中编译 C# visual studio 控制台应用程序

标签 c# macos mono

我是 mono 和 C# 的新手,所以这可能是一个简单的问题,但我找不到答案。 我需要在我的 mac 上编译一个 C# visual studio 控制台应用程序。我认为单声道适合这个目的。我不知道要编译哪个文件并采用了 program.cs(我的主要功能所在的位置)或者我应该编译 Project.csproj。 当我运行时

gmcs Program.cs

我明白了

Program.cs(17,16): error CS0246: The type or namespace name `Oplossing' could not be found. Are you missing an assembly reference?
Program.cs(129,54): error CS0246: The type or namespace name `Order' could not be found. Are    you missing an assembly reference?

我应该如何编译?

最佳答案

通过xbuild,你应该可以直接编译csproj,

http://www.mono-project.com/Microsoft.Build

关于c# - 在单声道 (mac) 中编译 C# visual studio 控制台应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14788223/

相关文章:

objective-c - 如何在 mac osx 中为文件类型设置自定义图标

C# Emacs模式题——缩进和构建

c# - System.IO.Directory.Exists() 与 Windows 和 Linux 一起使用

c# - Xamarin.Android 访问文件系统

c++ - 在 C++ : choose python version 中嵌入 Python

c# - Windows窗体应用程序:发布问题

c# - 如何缩短通往特性的路径?

c# - 正则表达式在没有被引号包围时使用空格拆分字符串在 refiddle 中有效,但在 C# 中无效

objective-c - CALayerDelegate displayLayer 和 NSView updateLayer 有什么区别

c# - IEnumerable<TEntity> 问题