mac安装.net core

Install for macOS 10.11 or higher (64 bit)

  1. 1

    Install pre-requisites

    In order to use .NET Core, you first need to install the latest version of OpenSSL. The easiest way to get this is from Homebrew.

    After installing brew, do the following:

    1. brew update
    2. brew install openssl
    3. mkdir -p /usr/local/lib
    4. ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
    5. ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/

    Video: Installing .NET Core and Visual Studio Code in a Mac

  2. 2

    Install .NET Core SDK

    The best way to install .NET Core 1.1 on macOS is to download the official installer.

    Download .NET Core SDK

    This installer will install the latest stable version of the tools and put them on your PATH so you can run dotnet from the Console.

    .NET Core 1.1 is the latest version. For long term support versions and additional downloads check the all downloads section.

    Note: if you have any problems with installation on macOS, please consult our known issues page.

  3. 3

    Initialize some code

    Let‘s initialize a sample Hello World application!

    1. dotnet new console -o hwapp
    2. cd hwapp
  4. 4

    Run the app

    The first command will restore the packages specified in the project file, and the second command will run the actual sample:

    1. dotnet restore
    2. dotnet run
  5.  

    And you‘re ready!

    You now have .NET core running on your machine!

    Visit the .NET Documentation to get access to additional tutorials, samples and the full .NET Core documentation.

  6.  

    Want some tools?

    Get an editor to help you be more productive with .NET Core.

时间: 2024-07-31 02:07:22

mac安装.net core的相关文章

Mac安装.NET Core过程中遇到的问题汇总备忘

根据官网https://www.microsoft.com/net/core#macosx 安装过程进行, 第二步执行删除已安装的.NET Core的shell脚本时,提示错误 uninstallation script requires superuser privileges to run 解决方法,使用sudo命令用root权限执行,如下 sudo -u root bash dotnet-uninstall-pkgs.sh 解决 没有安装过.NET Core的可以略过这一步

在Mac中安装.Net Core的开发环境

在mac中部署dotnet core开发环境,我的MacOS版本号为OSX EI Capitan 10.11.6 1.安装brew homebrew官网推荐的安装命令如下: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 但我的机器上安装时却提示连接不上http://raw.githubusercontent.com.....嗯,木有vp

从安装.net Core 到helloWord(Mac上)

最近听说微软 正式发不了.netCore 1.0 于是就安装了 并安装了vs Code 用于编写一些.net程序 一. .netCore的安装: 首先需要通过brew安装openssl(相信homeBrew大家应该都安装过了 没有的话 直接在控制台执行下面这条命令就行) /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew安装好后逐步

CentOS 7 安装. Net Core SDK 2.0

1.安装.Net Core SDK 2.0 1)首先准备好先决条件 yum install libunwind libicu 2)下载.net Core SDK二进制文件 # https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.0-download.md wget https://download.microsoft.com/download/1/B/4/1B4DE605-8378-47A5

windows 下使用Linux 子系统-安装.net core 环境

在 Windows 上进行 web 开发,比较普遍的方案是使用 phpstudy 或者别的一些集成环境软件进行环境搭建,写好代码后将代码上传至版本管理工具 git/svn,再将代码同步到 Linux 服务器,这个过程当中开发者的开发环境(Windows)与代码最终执行的环境(Linux)不一致经常会导致一些奇奇怪怪的问题,想在 Windows 上进行 linux 下的 web 开发,不想用 mac(毕竟没钱买 mac),又不想使用虚拟机(虚拟机开机速度慢,添加站点需要重启,分配内存会导致机器变得

mac 安装nginx

1.brew search nginx 2.brew install nginx 启动nginx ,sudo nginx ;访问localhost:8080 发现已出现nginx的欢迎页面了. 备注: ln -s  /usr/local/sbin/nginx /usr/bin/nginx 做个软连接.常用的指令有: nginx -V 查看版本,以及配置文件地址nginx -v 查看版本nginx -c filename 指定配置文件nginx -h 帮助 #重新加载配置|重启|停止|退出 ngi

mac安装brew 软件包管理工具Homebrew

mac 安装 brew  Homebrew brew 全称Homebrew  是Mac OSX上的软件包管理工具 Homebrew 安装和卸载工具 只用一行命令就能完成 官方地址:    http://brew.sh/index.html mac 自带ruby 打开命令行  terminal 输入  : ruby -version 1) 安装命令 ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)&

mac安装mysql及终端操作mysql与pycharm的数据库可视化

一.Mac安装mysql 首先下载mysql,地址:https://dev.mysql.com/downloads/mysql/ 然后已知安装就好了,会出现让你记住密码的提示,然后就安装好了.... 更改密码,可以参考:http://blog.csdn.net/soft2buy/article/details/50223373 二.终端操作mysql 首先在系统偏好里面找到mysql,如下图左一,然后点开,运行mysql,使其呈现running,如下图右一.     然后打开终端,输入mysql

Mac安装MySQL

Mac安装MySQL没有Win下那么智能(无脑), 还须要一些配置步骤. 网上教程不够具体, 找了几篇综合起来才安装好, 因此留个印记, 帮其它人降低点时间损耗: 1. 去官网下一个mysql-*.*.*-osx10.9-x86_64.dmg, 注意选择对应CPU位数的 2. 安装完后, 改密码 :/usr/local/mysql/bin/mysqladmin -u root password YourPassword 3. 从这一步開始有差别了: (1) 假设你是用Mac自带的terminal