両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン |
dotnet [2019/09/20 01:27] – [.NET Core] ともやん | dotnet [2021/12/01 06:48] – [インストール] ともやん |
---|
====== .NET Core, .NET Framework 関連 ====== | ~~CLOSETOC~~ |
| ====== .NET 関連 ====== |
| {{:dotnet:net_logo.svg?150|.NET Logo}}\\ |
| .NET Framework 4.8\\ |
| * Windows 専用バージョンの .NET\\ |
| .NET Core\\ |
| * クロスプラットフォームバージョンの .NET\\ |
| .NET\\ |
| * .NET5 から .NET Core と .NET は併用できるが .NET Framework は廃止の方向\\ |
| \\ |
| 本家: [[https://dotnet.microsoft.com/|.NET | Free. Cross-platform. Open Source.]]\\ |
| ダウンロード: [[https://dotnet.microsoft.com/download|Download .NET (Linux, macOS, and Windows)]]\\ |
| |
===== .NET Core ===== | .NET Framework 4.8 は[[https://www.microsoft.com/|マイクロソフト]]が開発したアプリケーション開発・実行環境である。\\ |
[[dotnet:core:blazor|Blazor - Web ブラウザで動作する .NET Core 環境]]\\ | [[https://docs.microsoft.com/ja-jp/dotnet/csharp/|C#]]、[[https://docs.microsoft.com/ja-jp/dotnet/visual-basic/|Visual Basic .NET]]、[[https://docs.microsoft.com/ja-jp/cpp/dotnet/dotnet-programming-with-cpp-cli-visual-cpp?view=vs-2019|C++/CLI]]、[[https://fsharp.org/|F#]]、[[https://docs.microsoft.com/ja-jp/powershell/|PowerShell]]、[[https://ironpython.net/|IronPython]]、[[http://ironruby.net/|IronRuby]]... などの言語がある。\\ |
| 各種言語のコンパイラは、ソースコードを共通中間言語 (CIL) のバイトコードに翻訳しアセンブリに格納する。\\ |
| * [[https://docs.microsoft.com/ja-jp/dotnet/standard/common-type-system|共通型システム]] (CTS: Common Type System)\\ |
| * [[https://docs.microsoft.com/ja-jp/dotnet/standard/common-type-system|共通言語仕様]] (CLS: Common Language Specification)\\ |
| * [[https://ja.wikipedia.org/wiki/%E5%85%B1%E9%80%9A%E4%B8%AD%E9%96%93%E8%A8%80%E8%AA%9E|共通中間言語]] (CIL: Common Intermediate Language) ※ MSIL と呼ばれていた事もある。\\ |
| * [[https://ja.wikipedia.org/wiki/%E5%85%B1%E9%80%9A%E8%A8%80%E8%AA%9E%E5%9F%BA%E7%9B%A4|共通言語基盤]] (CLI: Common Language Infrastructure)\\ |
| * [[https://ja.wikipedia.org/wiki/%E5%AE%9F%E8%A1%8C%E6%99%82%E3%82%B3%E3%83%B3%E3%83%91%E3%82%A4%E3%83%A9|ジャストインタイムコンパイラ]] (JIT: Just-in-time compiler)\\ |
| * [[https://en.wikipedia.org/wiki/Virtual_Execution_System|仮想実行システム]] (VES: Virtual Execution System)\\ |
| ===== インストール ===== |
| <WRAP prewrap 100%> |
| <WRAP color_term> |
| <WRAP prewrap 100% color_command><code> |
| $ sudo dnf install dotnet |
| </code></WRAP> |
| <WRAP prewrap 100% color_result_long><html><pre> |
| メタデータの期限切れの最終確認: 0:02:10 時間前の 2021年11月30日 14時35分15秒 に実施しました。 |
| 依存関係が解決しました。 |
| ============================================================================================================= |
| パッケージ アーキテクチャー バージョン リポジトリー サイズ |
| ============================================================================================================= |
| インストール: |
| <b class=GRN>dotnet</b> x86_64 5.0.206-1.fc35 fedora 11 k |
| 依存関係のインストール: |
| <b class=GRN>aspnetcore-runtime-5.0</b> x86_64 5.0.9-1.fc35 fedora 6.5 M |
| <b class=GRN>aspnetcore-targeting-pack-5.0</b> x86_64 5.0.9-1.fc35 fedora 1.3 M |
| <b class=GRN>dotnet-apphost-pack-5.0</b> x86_64 5.0.9-1.fc35 fedora 3.7 M |
| <b class=GRN>dotnet-host</b> x86_64 5.0.9-1.fc35 fedora 105 k |
| <b class=GRN>dotnet-hostfxr-5.0</b> x86_64 5.0.9-1.fc35 fedora 152 k |
| <b class=GRN>dotnet-runtime-5.0</b> x86_64 5.0.9-1.fc35 fedora 26 M |
| <b class=GRN>dotnet-sdk-5.0</b> x86_64 5.0.206-1.fc35 fedora 50 M |
| <b class=GRN>dotnet-targeting-pack-5.0</b> x86_64 5.0.9-1.fc35 fedora 2.1 M |
| <b class=GRN>dotnet-templates-5.0</b> x86_64 5.0.206-1.fc35 fedora 1.9 M |
| <b class=GRN>netstandard-targeting-pack-2.1</b> x86_64 5.0.206-1.fc35 fedora 1.3 M |
| |
| トランザクションの概要 |
| ============================================================================================================= |
| インストール 11 パッケージ |
| |
| ダウンロードサイズの合計: 93 M |
| インストール後のサイズ: 349 M |
| これでよろしいですか? [y/N]: y |
| パッケージのダウンロード: |
| (1/11): dotnet-5.0.206-1.fc35.x86_64.rpm 64 kB/s | 11 kB 00:00 |
| (2/11): aspnetcore-targeting-pack-5.0-5.0.9-1.fc35.x86_64.rpm 528 kB/s | 1.3 MB 00:02 |
| (3/11): dotnet-host-5.0.9-1.fc35.x86_64.rpm 241 kB/s | 105 kB 00:00 |
| (4/11): dotnet-hostfxr-5.0-5.0.9-1.fc35.x86_64.rpm 355 kB/s | 152 kB 00:00 |
| (5/11): aspnetcore-runtime-5.0-5.0.9-1.fc35.x86_64.rpm 1.1 MB/s | 6.5 MB 00:06 |
| (6/11): dotnet-apphost-pack-5.0-5.0.9-1.fc35.x86_64.rpm 625 kB/s | 3.7 MB 00:06 |
| (7/11): dotnet-targeting-pack-5.0-5.0.9-1.fc35.x86_64.rpm 598 kB/s | 2.1 MB 00:03 |
| (8/11): dotnet-templates-5.0-5.0.206-1.fc35.x86_64.rpm 515 kB/s | 1.9 MB 00:03 |
| (9/11): netstandard-targeting-pack-2.1-5.0.206-1.fc35.x86_64.rpm 699 kB/s | 1.3 MB 00:01 |
| (10/11): dotnet-runtime-5.0-5.0.9-1.fc35.x86_64.rpm 945 kB/s | 26 MB 00:28 |
| (11/11): dotnet-sdk-5.0-5.0.206-1.fc35.x86_64.rpm 1.3 MB/s | 50 MB 00:37 |
| ------------------------------------------------------------------------------------------------------------- |
| 合計 2.0 MB/s | 93 MB 00:45 |
| トランザクションの確認を実行中 |
| トランザクションの確認に成功しました。 |
| トランザクションのテストを実行中 |
| トランザクションのテストに成功しました。 |
| トランザクションを実行中 |
| 準備 : 1/1 |
| インストール中 : dotnet-host-5.0.9-1.fc35.x86_64 1/11 |
| インストール中 : aspnetcore-targeting-pack-5.0-5.0.9-1.fc35.x86_64 2/11 |
| インストール中 : dotnet-apphost-pack-5.0-5.0.9-1.fc35.x86_64 3/11 |
| インストール中 : dotnet-hostfxr-5.0-5.0.9-1.fc35.x86_64 4/11 |
| インストール中 : dotnet-runtime-5.0-5.0.9-1.fc35.x86_64 5/11 |
| インストール中 : aspnetcore-runtime-5.0-5.0.9-1.fc35.x86_64 6/11 |
| インストール中 : dotnet-targeting-pack-5.0-5.0.9-1.fc35.x86_64 7/11 |
| インストール中 : dotnet-templates-5.0-5.0.206-1.fc35.x86_64 8/11 |
| インストール中 : netstandard-targeting-pack-2.1-5.0.206-1.fc35.x86_64 9/11 |
| インストール中 : dotnet-sdk-5.0-5.0.206-1.fc35.x86_64 10/11 |
| インストール中 : dotnet-5.0.206-1.fc35.x86_64 11/11 |
| scriptletの実行中: dotnet-5.0.206-1.fc35.x86_64 11/11 |
| 検証 : aspnetcore-runtime-5.0-5.0.9-1.fc35.x86_64 1/11 |
| 検証 : aspnetcore-targeting-pack-5.0-5.0.9-1.fc35.x86_64 2/11 |
| 検証 : dotnet-5.0.206-1.fc35.x86_64 3/11 |
| 検証 : dotnet-apphost-pack-5.0-5.0.9-1.fc35.x86_64 4/11 |
| 検証 : dotnet-host-5.0.9-1.fc35.x86_64 5/11 |
| 検証 : dotnet-hostfxr-5.0-5.0.9-1.fc35.x86_64 6/11 |
| 検証 : dotnet-runtime-5.0-5.0.9-1.fc35.x86_64 7/11 |
| 検証 : dotnet-sdk-5.0-5.0.206-1.fc35.x86_64 8/11 |
| 検証 : dotnet-targeting-pack-5.0-5.0.9-1.fc35.x86_64 9/11 |
| 検証 : dotnet-templates-5.0-5.0.206-1.fc35.x86_64 10/11 |
| 検証 : netstandard-targeting-pack-2.1-5.0.206-1.fc35.x86_64 11/11 |
| |
| インストール済み: |
| aspnetcore-runtime-5.0-5.0.9-1.fc35.x86_64 aspnetcore-targeting-pack-5.0-5.0.9-1.fc35.x86_64 |
| dotnet-5.0.206-1.fc35.x86_64 dotnet-apphost-pack-5.0-5.0.9-1.fc35.x86_64 |
| dotnet-host-5.0.9-1.fc35.x86_64 dotnet-hostfxr-5.0-5.0.9-1.fc35.x86_64 |
| dotnet-runtime-5.0-5.0.9-1.fc35.x86_64 dotnet-sdk-5.0-5.0.206-1.fc35.x86_64 |
| dotnet-targeting-pack-5.0-5.0.9-1.fc35.x86_64 dotnet-templates-5.0-5.0.206-1.fc35.x86_64 |
| netstandard-targeting-pack-2.1-5.0.206-1.fc35.x86_64 |
| |
| 完了しました! |
| </pre></html></WRAP> |
| </WRAP> |
| </WRAP> |
| |
| <wrap em>古い文献です</wrap>\\ |
| Fedora 30 での .NET Core のインストール\\ |
| [[linux:fedora_copr#net_core|Fedora Copr リポジトリ - .NET Core]]\\ |
| |
===== 開発環境 ===== | ===== 開発環境 ===== |
[[windows:visualstudio|Microsoft Visual Studio (Windows)]]\\ | [[windows:visualstudio|Microsoft Visual Studio (Windows)]]\\ |
| |
| ===== .NET Core ===== |
| [[dotnet:core:blazor|Blazor - Web ブラウザで動作する .NET Core 環境]]\\ |
| |
| ===== Framework ベンチマーク ===== |
| [[https://www.techempower.com/benchmarks/#section=data-r18&hw=ph&test=plaintext|TechEmpower Framework Benchmarks]]\\ |
| |
===== FCL(Framework Class Library) ===== | ===== FCL(Framework Class Library) ===== |
.NETのプロフェッショナルを目指すためには必須の書籍である。\\ | .NETのプロフェッショナルを目指すためには必須の書籍である。\\ |
<html> | <html> |
<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=tomoyan596-22&o=9&p=8&l=as1&asins=4891005238&md=1X69VDGQCMF7Z30FM082&fc1=000000&IS1=1<1=_blank&m=amazon&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe> | <iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="https://rcm-fe.amazon-adsystem.com/e/cm?ref=tf_til&t=tomoyan041-22&m=amazon&o=9&p=8&l=as1&IS1=1&detail=1&asins=4891005238&linkId=93ac9016312c850f38c1f127d93715d4&bc1=FFFFFF<1=_top&fc1=333333&lc1=0066C0&bg1=FFFFFF&f=ifr"></iframe> |
</html> | </html> |
| |
C++/CLIについて始めて本格的に解説した書籍。C++プログラマ向けのC++/CLIの解説書ではあるが、C#経験者であれば構文を置き換えるだけで理解できる内容である。(きっと...。)\\ | C++/CLIについて始めて本格的に解説した書籍。C++プログラマ向けのC++/CLIの解説書ではあるが、C#経験者であれば構文を置き換えるだけで理解できる内容である。(きっと...。)\\ |
<html> | <html> |
<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=tomoyan596-22&o=9&p=8&l=as1&asins=4797336277&md=1X69VDGQCMF7Z30FM082&fc1=000000&IS1=1<1=_blank&m=amazon&lc1=0000FF&bc1=FFFFFF&bg1=FFFFFF&f=ifr&npa=1" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe> | <iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="https://rcm-fe.amazon-adsystem.com/e/cm?ref=tf_til&t=tomoyan041-22&m=amazon&o=9&p=8&l=as1&IS1=1&detail=1&asins=4797336277&linkId=02f0a91f30ca8afa6f5e8940572cf110&bc1=ffffff<1=_top&fc1=333333&lc1=0066c0&bg1=ffffff&f=ifr"> |
| </iframe> |
</html> | </html> |
| |
| ===== 参考文献 ===== |
| [[https://blog.inedo.com/jp/dotnet/net5-release-prep|開発が大きく変わる.NET5。その概要と移行方法をご紹介。]]\\ |
| |
| ==== 付録 ==== |
| [[tw>tomoyan596/status/1465557088608817154|dot.net Core 5.0 がいつの間にかFedoraのCoprから公式リポジトリに移ってる??🤔 / Twitter]]\\ |
| [[tw>tomoyan596/status/1465793866573910016|.NET5 から .NET Coreと言わなくなったのですねぇ🤔世の中みんなCoreなんて、そのうち付けなくなる傾向だからかなぁ🤔Fedoraも最初はFedora CoreでしたけどCoreとった😅みんな最初からCoreなんて付けなくていい🤤 / Twitter]]\\ |
| |