How to write programs in C# .NET, to run them on Linux/Wine/Mono?

前端 未结 5 894
攒了一身酷
攒了一身酷 2020-12-08 08:02

In this particular case I need to run .complicated NET application for Linux. By complicated i mean - that project was developed for 3 years and i don\'t wa

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 08:46

    You can develop C# applications on linux with .NET Core: https://www.microsoft.com/net/core

    After you install it, type dotnet new in your terminal to get a list of application templates which can be generated for you to start.

    As of .NET Core 2.0 today, this is the list:

    Templates                                         Short Name       Language          Tags               
    --------------------------------------------------------------------------------------------------------
    Console Application                               console          [C#], F#, VB      Common/Console     
    Class library                                     classlib         [C#], F#, VB      Common/Library     
    Unit Test Project                                 mstest           [C#], F#, VB      Test/MSTest        
    xUnit Test Project                                xunit            [C#], F#, VB      Test/xUnit         
    ASP.NET Core Empty                                web              [C#], F#          Web/Empty          
    ASP.NET Core Web App (Model-View-Controller)      mvc              [C#], F#          Web/MVC            
    ASP.NET Core Web App                              razor            [C#]              Web/MVC/Razor Pages
    ASP.NET Core with Angular                         angular          [C#]              Web/MVC/SPA        
    ASP.NET Core with React.js                        react            [C#]              Web/MVC/SPA        
    ASP.NET Core with React.js and Redux              reactredux       [C#]              Web/MVC/SPA        
    ASP.NET Core Web API                              webapi           [C#], F#          Web/WebAPI         
    global.json file                                  globaljson                         Config             
    Nuget Config                                      nugetconfig                        Config             
    Web Config                                        webconfig                          Config             
    Solution File                                     sln                                Solution           
    Razor Page                                        page                               Web/ASP.NET        
    MVC ViewImports                                   viewimports                        Web/ASP.NET        
    MVC ViewStart                                     viewstart                          Web/ASP.NET        
    

    The current latest version is 2.0.

提交回复
热议问题