.NET Core 1.0

Post on 13-Jan-2017

255 views 1 download

Transcript of .NET Core 1.0

http://aka.ms/chack

RyuJIT, SIMD

Runtime Compilers.NET Compiler Platform (“Roslyn”)

C#/F#/VB Languages

.NET Core 1.0 Libraries

.NET Framework 4.6 Libraries

Libraries

.NET Framework 4.6 .NET Core 1.0

Fully-featured and integrated

.NET libraries and runtime for Windows

Modular and optimized

.NET libraries and runtimes

Announcing

.NET Core 1.0 RTM available in June 27th

.NET Core

ASP.NET Core

Entity Framework Core

Tooling Preview 2

github.com/dotnet

github.com/aspnet

Developed in the open

github.com/dotnet

github.com/aspnet

2016

Windows 7 SP1+ / Windows Server 2008 R2 SP1+ OS X 10.11

Red Hat Enterprise Linux 7.2 Linux Mint 17

Centos 7.1 Oracle Linux 7.1

Ubuntu 14.04 LTS, 16.04 LTS Fedora 23

Debian 8.2 openSUSE 13.2

.NET Core 1.0 RC2 (Go-live license)

.NET Core 1.0 SDK Preview 1

.NET Core 1.0 for Visual Studio 2015 Preview 1

RTM

Preview 2

Preview 2

※ SDK, VS Update の RTM は Visual Studio “15” RTM と同じ時期のリリースを予定

http://dot.net/core

dotnet new サンプル プロジェクトの生成 (C#, F#)

dotnet restore 実行に必要なパッケージのリストア

dotnet build .NET Core プロジェクトのビルド

dotnet publish .NET アプリケーションの発行

dotnet run .NET プロジェクトのビルドと実行

dotnet test ユニットテストの実行

dotnet pack アセンブリの NuGet パッケージ生成

dotnet [app.dll] アプリケーションの実行

1

2

3

4

5

6

.NET Framework 4.6 .NET Core 1.0Full .NET Framework for any scenario and

library support on Windows

Modular libraries & runtime optimized for server and cloud

workloads

http://swagger.io/

namespace CoreWebApp1{

public class Program{

public static void Main(string[] args){

var host = new WebHostBuilder().UseKestrel().UseUrls("http://*:8080").UseContentRoot(Directory.GetCurrentDirectory()).UseIISIntegration().UseStartup<Startup>().Build();

host.Run();}

}}

Startup クラスによるコンフィグレーション

WebHostBuilder.Run メソッドによるWeb アプリの実行

URL ポートの指定

.NET FRAMEWORK .NET CORE XAMARIN

アプ

リモ

デル

ベー

スラ

イブ

ラリ

Xamarin

APIs

.NET Framework

APIs

GUI フレームワークWindows APIs

各デバイス固有クロスプラットフォームAPIs

Shared

APIs

.NET Core

APIsクロスプラットフォーム関連 APIs

https://github.com/Microsoft/dotnet-apiport/releases

http://bit.ly/1LqX0aF

http://dotnetstatus.azurewebsites.net/

Porting to .NET Core from .NET Framework

Migrating From ASP.NET MVC to ASP.NET Core MVC

Porting from EF6.x to EF Core

https://docs.microsoft.com/en-us/dotnet/core/api/index

https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/porting.md

.NET FRAMEWORK .NET CORE XAMARIN

アプ

リモ

デル

ベー

スラ

イブ

ラリ

.NET FRAMEWORK .NET CORE XAMARIN

.NET FRAMEWORK .NET CORE XAMARIN

.NET FRAMEWORK .NET CORE XAMARIN

アプ

リモ

デル

の革

新.N

ET の

革新

TOOLS

"dependencies": {"Microsoft.NETCore.App": {"type": "platform","version": "1.0.0-*"

}},

"frameworks": {"netcoreapp1.0": {"imports": "dnxcore50"

}}

"dependencies": {"Microsoft.NETCore.App": "1.0.0-*"

},

"frameworks": {"netcoreapp1.0": {"imports": "dnxcore50"

}},

"runtimes": {"win10-x64": {},"osx.10.11-x64": {}

}

Runtime Identifier (RID)

win10-x64win10-x86

osx.10.10-x64osx.10.11-x64rhel.7.2-x64

ubuntu.14.04-x64centos.7.1-x64debian.8.2-x64

linuxmint.17.3-x64…

• .NET Core App Types

https://docs.microsoft.com/en-us/dotnet/articles/core/app-types

• Runtime IDentifier (RID) catalog

https://docs.microsoft.com/en-us/dotnet/articles/core/rid-catalog

注) 今後の SDK Tools のアップデートで、.xproj/project.json から .csproj/MSBuild に置き換わる予定あり

https://github.com/aspnet/Announcements/issues/164

<configuration><system.webServer><handlers>

<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" ... /></handlers><aspNetCore processPath="dotnet" arguments=".¥CoreWebApp1.dll" ... />

</system.webServer></configuration>

https://hub.docker.com/r/microsoft/dotnet/

beta.docker.com

https://visualstudiogallery.msdn.microsoft.com/0f5b2caa-ea00-41c8-b8a2-058c7da0b3e4

https://aka.ms/azurecontainerservice

http://dot.net

Any developer, any app, any platform

Any developer, any app, any platform

http://dot.net

https://docs.microsoft.com/ja-jp/dotnet/

https://github.com/dotnet/home

https://github.com/aspnet/home

http://docs.asp.net

http://live.asp.net

https://github.com/aspnet/cli-samples

http://blog.shibayan.jp/

Beta 3 までの SDK

KRE (K Runtime Environment)

k コマンド (ランタイム エントリ ポイント)

kpm コマンド (K Package Manager)

kvm コマンド (K Version Manager)

Beta 4 – RC1 までの SDK

DNX (.NET Execution Environment)

dnx コマンド (ランタイム エントリ ポイント)

dnu コマンド (.NET Development Utility)

dnvm コマンド (.NET Version Manager)

Commit log: DNX ALL THE THINGS

Akira Inoue (井上章)

Technical Evangelist

http://aka.ms/chack

主に .NET/ASP.NET や Visual Studio, Microsoft Azure

などの開発技術を専門とするエバンジェリストとして技術書籍やオンライン記事などの執筆、さまざまな技術イベントでの講演などを行う。

2008 年マイクロソフト入社。

本情報の内容(添付文書、リンク先などを含む)は作成日時点でのものであり、予告なく変更される場合があります。