12
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

.Net CoreをMacで試す

Last updated at Posted at 2016-06-28

1.0.0が出たということなので環境構築だけでもしたメモ

Setup

$ brew update
$ brew install openssl
$ brew link --force openssl

Download

公式サイトから公式インストーラーをダウンロードする

スクリーンショット 2016-06-28 12.39.33.png

Install

インストラーをポチポチした後 ターミナルを開いて以下のコマンドでリンクを通した

$ ln -s /usr/local/share/dotnet/dotnet /usr/local/bin

FYI: https://github.com/dotnet/core/blob/master/cli/known-issues.md#users-of-zsh-z-shell-dont-get-dotnet-on-the-path-after-install

Create Project

$ mkdir hwapp; cd hwapp
$ dotnet new
$ dotnet restore
$ dotnet run

ここまでやるとHello World!とコンソールに出力された。

まとめ

環境構築してからドキュメント読んだら
UWPは動かないとのことなのでやりたいことがなくなった。

せめてサーバーでも動かそうと思いWebFrameworkのサンプルを動かそうとしたけど

➜  SampleApp git:(dev) dotnet restore
log  : Restoring packages for /Users/k2wanko/src/github.com/aspnet/KestrelHttpServer/samples/SampleApp/project.json...
log  : Writing lock file to disk. Path: /Users/k2wanko/src/github.com/aspnet/KestrelHttpServer/samples/SampleApp/project.lock.json
log  : /Users/k2wanko/src/github.com/aspnet/KestrelHttpServer/samples/SampleApp/project.json
log  : Restore completed in 1387ms.
➜  SampleApp git:(dev) dotnet run
Project Microsoft.AspNetCore.Server.Kestrel does not have a lock file. Please run "dotnet restore" to generate a new lock file.
Project Microsoft.AspNetCore.Server.Kestrel does not have a lock file. Please run "dotnet restore" to generate a new lock file.

という感じでdotnet restoreは成功するのにdotnet rundotnet restoreしろと言われるので以下無限ループ(project.lock.jsonは作成されてるのに...)

12
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?