Welcome 微信登录

首页 / 操作系统 / Linux / Mac OS 环境下安装 ASP.Net及使用Yeoman 创建ASP.Net 项目

本文是按照英文原文:Installing ASP.NET 5 On Mac OS安装时遇到的问题的总结Blog。原文提示如下:Installing ASP.NET 5 On Mac OS XBy Steve SmithASP.NET 5 runs on the .NET Execution Environment (DNX), which is available on multiple platforms, including OS X. This article describes how to install DNX, and therefore ASP.NET 5, on OS X, using Homebrew.In this article:Install ASP.NET 5 on OS XInstall ASP.NET 5 on OS XASP.NET 5 requires DNX, which is installed and managed by the .NET Version Manager (DNVM). The DNVM is easily installed using a tool called Homebrew, which will also install the correct version of Mono for OS X.Install HomebrewThe first step is to install Homebrew if it"s not already installed. This can be done from a Terminal prompt using this script:ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"The installer will inform you of the steps it is taking and pause before proceeding. You can learn more about Homebrew here.到这一步,可能会出现 brew 已经安装了。可以执行:brew -vInstall the .NET Version Manager (DNVM)Once Homebrew is installed, install the DNVM by running brew tap aspnet/dnx from a Terminal window. If you need to update your version of DNVM, first run brew untap aspnet/dnx to delete the old commands, and then run the brew tap aspnet/dnx command again to get the updated scripts.If you had an older version of our Homebrew "tap" configured, you might get the following error: Could not create link for aspnet/dnx/kvm, as it conflicts with aspnet/k/kvm. In that case, simply run brew uninstall kvm to ensure any old versions of kvm are removed, then brew untap aspnet/k to remove the old tap. After that, the brew tap aspnet/dnx command should succeed.Next, run the command brew install dnvm to install the .NET Version Manager. This will also automatically install the latest DNX package from the https://www.nuget.org/api/v2 feed.这一步可能出现没有权限的问题:执行chown root:wheel /usr/local/bin/brew然后执行brew link mono完成安装。 一切正常了。更多详情见请继续阅读下一页的精彩内容: http://www.linuxidc.com/Linux/2015-07/120345p2.htm
  • 1
  • 2
  • 下一页
Linux AIO机制Ubuntu 15.04下为Vim安装YouCompleteMe插件相关资讯      ASP.NET 
  • 针对Linux ASP.NET MVC网站中   (04月02日)
  • Linux 部署ASP.NET SQLite 应用 的  (04月01日)
  • ASP.NET 5 已终结,迎来 ASP.NET   (01月20日)
  • 使用VS Code开发ASP.NET Core 应用  (04月01日)
  • 微软开源 .NET 一年后,ASP.NET 情  (01月23日)
  • 微软推出.NET Core与ASP.NET漏洞奖  (10/23/2015 11:31:05)
本文评论 查看全部评论 (0)
表情: 姓名: 字数