简单理解在Mac OS X上运行ASP.NET程序

运行ASP.NET程序的三要素:

1) CLR(.NET运行时)

2) KRE(ASP.NET运行时)

3) Web服务器

所以在Mac OS X上运行ASP.NET程序,就需要对应这三要素的东西:

1) CLR - Mono(目前只有Mono可以用,以后可以用Core CLRE)

2) KRE - KRE-Mono(基于Mono的KRE)

3)Web服务器 - Kestrel

接着,用下面的4个命令将这三样东西安装上即可:

brew tap aspnet/k
brew install kvm
source kvm.sh
kvm upgrade

接下来,照理只要将Web服务器开起来就能运行了。

但是,大多数的程序都有自己的包包,所以要先把包包给装上:

kpm restore

之后,开启Web服务器完事:

k kestrel

【参考资料】

Building C#/ASP.NET Apps on a Mac With vNext

How I got ASP.NET vNext running on Mac OS X

Mac OS X上编写 ASP.NET vNext(一)KRE环境搭建

让 ASP.NET vNext 在 Mac OS 中飞呀飞。。。 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
It's only been a year since I wrote ASP.NET Core and Angular 2, but it definitely feels a lot more, at least from a web developer's perspective. Modern web technologies are still improving at lightning-fast speed, with an increasing, perceptible, and measurable interest being in the client-side aspects of the game. Angular, React, and VueJS collected no less than 150,000 StackOverflow questions in the latest 18 months, which is more than 250 per day--and the trend is still growing. That's to be expected, since most of the major conceptual changes that occurred between 2015 and 2017 have been hitting the clients way more than the servers; we switched from a reactive approach of doing stuff--that led us to build responsive, resilient, elastic, and message-driven Single-Page Apps (SPAs)--to a progressive way of seeing things--which materialized into Progressive Web Apps (PWAs). The change of perspective is slight, yet prominent; far from being a different paradigm, what we've seen was nothing less than the natural and inevitable evolution of the same original concepts. Compared to the SPA revolution that took place in 2015-2016, the rise of Progressive Web Apps is not a game-breaking event; we can say that PWAs inherit all the major concepts that were already part of the Reactive Manifesto and bring them further on with brand new features--such as Service Workers--that would not have been possible without some relevant client-side accomplishments such as HTML5, modern browsers, and ECMAScript 6. PWAs are a much expected improvement in the present that also emphasizes its increasing distance from the past. At the same time, PWAs are not meant to be the future, not because they won't become a standard--they definitely will--but because they will also improve and, eventually, collapse into something else. This is how the client side of the moon always worked and--hopefully--always will.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值