简体   繁体   English

Mono发行版中的C#编译器版本与Mono版本相同吗?

[英]Is the C# compiler version in a Mono distribution the same as the Mono version?

I want to know which version of Mono I have loaded. 我想知道我加载了哪个版本的Mono。 I know the C# compiler version (C# compiler version echos to screen when I initiate compile using csc command on a filename.cs script file). 我知道C#编译器版本(当我在filename.cs脚本文件上使用csc命令启动编译时,屏幕上会显示C#编译器版本echos)。 But is this the same as Mono version? 但这与Mono版本相同吗?

I have seen the compiler version when I compile a new filename.cs script file, but the --version extension does not work with Mono. 我在编译新的filename.cs脚本文件时看到了编译器版本,但是--version扩展不适用于Mono。 I loaded Mono from the official Mono download page, using those instructions. 我使用这些说明从官方Mono下载页面加载Mono。

Here is an example of how the C# compiler version shows up when I compile a script file: 下面是编译脚本文件时C#编译器版本如何显示的示例:

$ csc hello.cs Microsoft (R) Visual C# Compiler version 2.8.2.62916 (2ad4aabc) Copyright (C) Microsoft Corporation. $ csc hello.cs Microsoft(R)Visual C#编译器版本2.8.2.62916(2ad4aabc)版权所有(C)Microsoft Corporation。 All rights reserved. 版权所有。

$ mono hello.exe returned the correct reply: Hello Mono World $ mono hello.exe返回正确回复:Hello Mono World

So I know which version of the Microsoft C# compiler is present, but I do not know what version of Mono I have loaded. 所以我知道哪个版本的Microsoft C#编译器存在,但我不知道我加载了什么版本的Mono。 How do I find the Mono version? 我如何找到Mono版本? Is it the same as the C# compiler version? 它与C#编译器版本相同吗?

mono --version

那个shell命令会给你这个版本

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

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