Run C# code on linux terminal

后端 未结 5 1980
慢半拍i
慢半拍i 2020-12-24 07:47

How can I execute a C# code on a linux terminal as a shell script.

I have this sample code:

public string Check(string _IPaddress,string _Port, int _         


        
5条回答
  •  感动是毒
    2020-12-24 08:11

    The #! (hashbang) tag is used to tell the shell which interpreter to use so that your perl, php, bash, sh, etc. scripts will run right.

    But C# is not a scripting language, it is intended to be compiled into an executable format. You need to install at least a compiler and runtime if you want to use C#, and preferably an IDE (Integrated Development Environment) to help you develop and debug your applications.

    Install Mono for the compiler and runtime, then MonoDevelop for the IDE.

提交回复
热议问题