How to compile a Visual Studio C# Project with Mono

前端 未结 5 823
暖寄归人
暖寄归人 2020-12-07 17:22

I\'m new to this, and don\'t know where to start.

I want to compile a Visual Studio C# project with Mono on Linux (by command line).

The main.cs file include

5条回答
  •  悲&欢浪女
    2020-12-07 18:06

    Visual Studio Code and Mono / .NetCore

    If you are into running/compiling/debugging C# on Linux, you now can use

    • Visual Studio Code
    • Mono Debug
    • C# on VS Code

    and if you want something with exactly the same api on linux and windows, you can use .Net Core

    On the command line, to compile:

    dotnet build  
    

    or if you have only one project in the folder

    dotnet build
    

    and then

    dotnet run
    

提交回复
热议问题