.NET

.NET(ドットネット、旧称 .NET Core)は、.NETを実装したフリーでオープンソースなクロスプラットフォームマネージソフトウェアフレームワークである[2]。.NET 5以降は、.NET FrameworkおよびXamarin/Monoの機能が統合され、それらの後継にもなっている。[3]

.NET
開発元 .NET Foundation
リポジトリ
プログラミング
言語
C++およびC#
対応OS Windows, Linux, macOS, Android, iOS, tvOS, watchOS
種別 ソフトウェアフレームワーク
ライセンス MIT License[1]
公式サイト dotnet.microsoft.com

.NETの実装には.NET FrameworkXamarin/Monoが存在する[4].NET Coreはクロスプラットフォームを特徴としてMicrosoftが開発を主導している.NET実装の1つである[4]WindowsLinuxmacOS等に対応している[5]。.NET Coreの基盤上では以下のタイプ(シナリオ)のアプリケーションを開発できる。

.NET Coreはモジュラーでもあるため、開発者は.NET CoreをアセンブリではなくNuGetパッケージにしてもよい。.NET FrameworkはWindows Updateにより更新されるが、.NET Coreの更新はそのパッケージマネージャに依存する[6][7]

機能

.NET Coreはフレームワークとして、実行環境のような下位レイヤーからUIフレームワークのような上位レイヤーまで様々な機能を提供する。以下は機能の例である。

  • プログラム実行環境(CoreCLRによるマネージコード実行環境)
  • ポータブル実行ファイル(各言語から共通中間言語へのコンパイルが可能にする持ち運べる実行ファイル)
  • 型/クラスライブラリ(標準ライブラリ = 言語仕様以上の型/クラス提供 by CoreCLR & CoreFX)

対応言語

.NET では以下の3つの言語を公式的にサポートしている[8]

実装

.NETは共通言語基盤 (CLI) の元となっている仕様であり、.NET CoreはCLIの実装になっている[9]

.NET CoreのランタイムはCoreCLRである[10]。CoreCLRはガベージコレクタJITコンパイラ(RyuJIT)、プリミティブな型/クラスライブラリからなっている[11][12][注釈 1][注釈 2][13]。またランタイムに必要な型/クラスライブラリに追加して、フレームワークとして規定する型群としてCoreFXが.NET Coreには含まれる[14]。CoreFXはFramework Class Libraryの一部をフォークしたものである[15]

.NET Coreと.NET FrameworkAPIを一部共有しているが、.NET Coreには.NET Frameworkに存在しない固有のAPIが搭載されている[6]。.NET Coreライブラリの派生物はUWP用に利用されている[16]。.NET Coreのコマンドラインインタフェースは、オペレーティングシステムには実行エントリポイントを、開発者にはコンパイルやパッケージ管理などのサービスを提供する[17]

ランタイム

.NETは複数のランタイムを利用できる。以下は .NET 7 における対応ランタイムである[18][19]

これらは目的に応じて使い分けられる。例えば iOS はAOTコンパイル前提でありMonoランタイムが利用される。

バージョン

.NET Coreバージョン
バージョン リリース日 発表 備考
.NET Core 1.0 2016-06-27[21]
.NET Core 1.1 2017-03-07[22]
.NET Core 2.0 2017-08-14
.NET Core 2.1 2018-05-30
.NET Core 2.2 2018-12-04
.NET Core 3.0 2019-09-23[23] Build 2018
.NET Core 3.1 2019-12-03 LTS
.NET 5 2020-11-10[24] 名前から"Core"が外れた[25]
.NET 6 2021-11-08[26] LTS
.NET 7 2022-11-08
.NET 8 2023-11-14 LTS

.NET Core 3から、デスクトップ・人工知能/機械学習IoTアプリケーションの開発をサポートした。

.NET Core 4はスキップされ、.NET 5になった。これは.NET 5が.NET Framework 4.8の後継でもあることから、.NET Framework 4.xとの混同を防ぐ目的を含んでいる[27]

Windows系UI専用ライブラリ

もともと.NET Coreはクロスプラットフォームを前提とするフレームワークであり、.NET Core 3よりも前のバージョンでは、Windowsのデスクトップソフトウェア用の標準GUIを提供するためのWindows FormsWPFが実装されていなかった[6][7]。2018年にマイクロソフトは、デスクトップ技術であるWindows Forms、WPF、UWPを.NET Core 3からサポートすることを公表した[28]。.NET Core 3.0では、Windows版に限りWindows FormsおよびWPFのサポートが提供されるようになった[29]

脚注

注釈

  1. RyuJITはもともと.NET Framework 4.6にて、新しい64ビット版のJITコンパイラとして導入された。
  2. 接頭辞である "Ryu" は日本語の「竜」であるが、これはThe Dragon Bookに由来する。

出典

  1. core/LICENSE.TXT”. GitHub. 2018年6月4日閲覧。
  2. What is .NET? An open-source developer platform.”. 2019年9月24日閲覧。 “.NET Core is a cross-platform .NET implementation for websites, servers, and console apps on Windows, Linux, and macOS.”
  3. 再統合された .NET:.NET 5 に関する Microsoft の計画”. Microsoft Docs. 2021年10月18日閲覧。
  4. What is .NET? An open-source developer platform.”. 2019年9月24日閲覧。
  5. .NET の概要”. microsoft.com. マイクロソフト. 2021年3月8日閲覧。
  6. Carter, Phillip; Knezevic, Zlatko (April 2016). “.NET Core - .NET Goes Cross-Platform with .NET Core”. MSDN マガジン (マイクロソフト) 13 (4). https://msdn.microsoft.com/magazine/mt694084 2018年8月27日閲覧。.
  7. .NET 2015 Overview”. Channel 9. マイクロソフト (2015年11月18日). 2018年8月27日閲覧。
  8. .NET マネージド言語の戦略 - .NET”. Microsoft Learn. 2024年3月18日閲覧。
  9. README.md coreclr”. GitHub. 2019年9月24日閲覧。 “.NET Core is a self-contained .NET runtime and framework that implements ECMA 335.”
  10. dotnet/coreclr: CoreCLR is the runtime for .NET Core. It includes the garbage collector, JIT compiler, primitive data types and low-level classes.”. GitHub. 2019年9月24日閲覧。 “CoreCLR is the runtime for .NET Core.”
  11. dotnet/coreclr: CoreCLR is the runtime for .NET Core. It includes the garbage collector, JIT compiler, primitive data types and low-level classes.”. GitHub. 2019年9月24日閲覧。 “It includes the garbage collector, JIT compiler, primitive data types and low-level classes.”
  12. CoreCLR is now Open Source”. .NET Framework Blog. マイクロソフト (2015年2月3日). 2015年2月27日閲覧。
  13. Why RyuJIT? How was the name chosen?”. nuWave eSolutions Development Team Blog. 2016年6月21日閲覧。
  14. dotnet/coreclr: CoreCLR is the runtime for .NET Core. It includes the garbage collector, JIT compiler, primitive data types and low-level classes.”. GitHub. 2019年9月24日閲覧。 “Many of the most familiar classes (System.Collections, System.IO, System.Xml and so on), live in packages defined in the dotnet/corefx repository.”
  15. Introducing .NET Core”. .NET Blog. マイクロソフト (2014年12月4日). 2015年2月27日閲覧。
  16. Intro to .NET Native and CoreRT”. GitHub (2016年4月23日). 2018年8月27日閲覧。
  17. Intro to CLI”. GitHub (2016年4月23日). 2018年8月27日閲覧。
  18. "Mono is one of the two runtimes that are supported by the .NET 6 project. CoreCLR is the other." danmoseley. (2021). Discussions#50150. dotnet/runtime. 2022-12-18閲覧.
  19. "the Native AOT support now shipping in .NET 7." Douglas, et al. (2022). .NET 7 is Available Today. .NET Blog.
  20. "NativeAOT - .NET runtime optimized for ahead of time compilation." dotnet/runtimelab. 2022-12-18閲覧.
  21. core/1.0.0.md at master · dotnet/core”. GitHub. 2020年5月26日閲覧。
  22. Announcing .NET Core Tools 1.0”. 2017年3月29日閲覧。
  23. Announcing .NET Core 3.0”. .NET Blog. 2019年9月24日閲覧。
  24. Announcing .NET 5.0”. .NET Blog. 2020年11月11日閲覧。
  25. Introducing .NET 5”. .NET Blog. 2019年5月7日閲覧。 “.NET 5 = .NET Core vNext
    .NET 5 is the next step forward with .NET Core.”
  26. core/roadmap.md at master · dotnet/core”. GitHub. 2019年12月4日閲覧。
  27. Introducing .NET 5”. .NET Blog. 2019年9月19日閲覧。 “We’re skipping the version 4 because it would confuse users that are familiar with the .NET Framework, which has been using the 4.x series for a long time.”
  28. .NET Core 3 and Support for Windows Desktop Applications”. MSDNブログ. マイクロソフト (2018年5月7日). 2018年8月27日閲覧。
  29. Windows Forms アプリを .NET Core 3.0 に移植する - .NET Core”. Microsoft Docs. 2019年9月24日閲覧。 “Windows Forms は、まだ Windows 専用のフレームワークであるため、Windows 上でのみ実行されます。”

外部リンク

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.