美文网首页
mac上.net core开发环境搭建.md

mac上.net core开发环境搭建.md

作者: 7f2aceb77681 | 来源:发表于2019-02-12 14:26 被阅读0次

    1. 安装 .NET Core SDK

    下载地址:https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install

    dotnet –info检验SDK是否安装成功:

    image.png

    2. 命令行创建项目

    安装好.NET Core SDK后,即可通过命令行创建项目、运行项目,开发也就可以用任意编辑器进行开发了,不过不知道有没有实时编译的功能,否则最好还是用ide,对于代码高亮、语法检测、错误提示、编译、调试会方便很多。

    dotnet new console -o projectName  // 创建一个目录命名为projectName
    cd projectName
    
    image.png

    3. 安装IDE(Visual Studio或Visual Studio Code)

    image.png

    下载地址:https://dotnet.microsoft.com/platform/tools

    如果安装Visual Studio,下载后可一键安装.NET Core SDK,省去第一步。

    相关文章

      网友评论

          本文标题:mac上.net core开发环境搭建.md

          本文链接:https://www.haomeiwen.com/subject/bkkheqtx.html