Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
12
Help us understand the problem. What is going on with this article?
@koki_cheese

.Net CoreをMacで試す

More than 3 years have passed since last update.

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
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
koki_cheese
Go/JavaScript/Firebase/GCP/Securityとかが好きです。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
12
Help us understand the problem. What is going on with this article?