天下之事,必先处之难,而后易之。
君临
知我者谓我心忧,不知我者谓我何求

Official Website:https://www.microsoft.com/net/learn/get-started-with-dotnet-tutorial#install

Windows

Install the .NET SDK

To start building .NET apps you just need to download and install the .NET SDK (Software Development Kit).

 
  1. Create your app

    Open a new command prompt and run the following commands:

    dotnet new console -o myApp
    cd myApp

    The dotnet command creates a new application of type console for you. The -o parameter creates a directory named myApp where your app is stored, and populates it with the required files. The cd myApp command puts you into the newly created app directory.

    The main file in the myApp folder is Program.cs. By default, it already contains the necessary code to write "Hello World!" to the Console.

    using System;
    
    namespace myApp
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("Hello World!");
            }
        }
    }
  2. Run your app

    In your command prompt, run the following command:

    dotnet run

    Congratulations, you've built and run your first .NET app!

  3. Get an editor

    Visual Studio is a fully-featured integrated development environment (IDE) for developing .NET apps on Windows.

  4. Keep learning

    Now that you've got the basics, you can keep learning with the .NET Quick Starts. In the first Quick Start you'll learn about collections.

Linux

Install the .NET SDK

To start building .NET apps you just need to download and install the .NET SDK (Software Development Kit).

Linux Distribution

 
    1. Enable .NET channel

      In order to install .NET Core from Red Hat on RHEL, you first need to register using the Red Hat Subscription Manager. If this has not been done on your system, or if you are unsure, see the Red Hat Getting Started Guide.

      Install .NET SDK

      After registering with the Subscription Manager and enabling the .NET Core channel, you are ready to install and enable the .NET SDK.

      In your command prompt, run the following commands:

      yum install rh-dotnet21 -y
      scl enable rh-dotnet21 bash
      
    2. Create your app

      Open a new command prompt and run the following commands:

      dotnet new console -o myApp
      cd myApp

      The dotnet command creates a new application of type console for you. The -o parameter creates a directory named myApp where your app is stored, and populates it with the required files. The cd myApp command puts you into the newly created app directory.

      The main file in the myApp folder is Program.cs. By default, it already contains the necessary code to write "Hello World!" to the Console.

      using System;
      
      namespace myApp
      {
          class Program
          {
              static void Main(string[] args)
              {
                  Console.WriteLine("Hello World!");
              }
          }
      }
    3. Run your app

      In your command prompt, run the following command:

      dotnet run

      Congratulations, you've built and run your first .NET app!

    4. Get an editor

      Visual Studio Code is a free, cross-platform code editor with support for .NET.

       

For full language support including smart code completion and debugging, get the C# extension for Visual Studio Code.

 

  1. Keep learning

    Now that you've got the basics, you can keep learning with the .NET Quick Starts. In the first Quick Start you'll learn about collections.

MacOS

Install the .NET SDK

To start building .NET apps you just need to download and install the .NET SDK (Software Development Kit).

 
    1. Create your app

      Open a new command prompt and run the following commands:

      dotnet new console -o myApp
      cd myApp

      The dotnet command creates a new application of type console for you. The -o parameter creates a directory named myApp where your app is stored, and populates it with the required files. The cd myApp command puts you into the newly created app directory.

      The main file in the myApp folder is Program.cs. By default, it already contains the necessary code to write "Hello World!" to the Console.

      using System;
      
      namespace myApp
      {
          class Program
          {
              static void Main(string[] args)
              {
                  Console.WriteLine("Hello World!");
              }
          }
      }
    2. Run your app

      In your command prompt, run the following command:

      dotnet run

      Congratulations, you've built and run your first .NET app!

    3. Get an editor

      Visual Studio Code is a free, cross-platform code editor with support for .NET.

       

For full language support including smart code completion and debugging, get the C# extension for Visual Studio Code.

 

  1. Keep learning

    Now that you've got the basics, you can keep learning with the .NET Quick Starts. In the first Quick Start you'll learn about collections.

 

posted on 2018-08-24 16:55  boonya  阅读(143)  评论(0编辑  收藏  举报

我有佳人隔窗而居,今有伊人明月之畔。
轻歌柔情冰壶之浣,涓涓清流梦入云端。
美人如娇温雅悠婉,目遇赏阅适而自欣。
百草层叠疏而有致,此情此思怀彼佳人。
念所思之唯心叩之,踽踽彳亍寤寐思之。
行云如风逝而复归,佳人一去莫知可回?
深闺冷瘦独自徘徊,处处明灯影还如只。
推窗见月疑是归人,阑珊灯火托手思忖。
庐居闲客而好品茗,斟茶徐徐漫漫生烟。

我有佳人在水之畔,瓮载渔舟浣纱归还。
明月相照月色还低,浅近芦苇深深如钿。
庐山秋月如美人衣,画堂春阁香气靡靡。
秋意幽笃残粉摇曳,轻轻如诉画中蝴蝶。
泾水潺潺取尔浇园,暮色黄昏如沐佳人。
青丝撩弄长裙翩翩,彩蝶飞舞执子手腕。
香带丝缕缓缓在肩,柔美体肤寸寸爱怜。
如水之殇美玉成欢,我有佳人清新如兰。
伊人在水我在一边,远远相望不可亵玩。