#author("2019-02-06T10:32:49+00:00","default:admin","admin")
#author("2021-07-15T01:11:11+00:00","default:admin","admin")
-[[Announcing .NET Core 2.0:https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-net-core-2-0/]]
-[[Announcing ASP.NET Core 2.0:https://blogs.msdn.microsoft.com/webdev/2017/08/14/announcing-asp-net-core-2-0/]]
-[[Announcing .NET Standard 2.0:https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-net-standard-2-0/]]
-[[Announcing Entity Framework Core 2.0:https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-entity-framework-core-2-0/]]

-[[ASP.NET Documentation | Microsoft Docs:https://docs.microsoft.com/en-us/aspnet/index#pivot=core]]
-[[Download .NET Core 2.0:https://dotnet.microsoft.com/download/dotnet-core/2.0]]

-[[マイクロソフト、「.NET Core 2.0」などを公開:https://japan.zdnet.com/article/35105758/]]
-[[マイクロソフト、オープンソースの.NET Core 2.0をリリース。コードを書きながら裏でテストが動くLive Unit Testingも可能に:http://www.publickey1.jp/blog/17/net_core_20live_unit_testing.html]]
-[[Microsoft、C++技術で.NET Core 2の高速化実現:http://news.mynavi.jp/news/2017/07/22/096/]]

-[[.NET Core 2.0 Changes – 4 Key Things to Know:https://stackify.com/net-core-2-0-changes/]]
--.NET Standard 2.0
--サポートOSの追加
--ASP.NET Core Razor Pages
--Visual Basic for .NET Core

*サポート期間 [#be0b68ff]
-[[Microsoft Support for .NET Core:https://github.com/dotnet/core/blob/master/microsoft-support.md]]
-[[.NET Core Support Policy:https://dotnet.microsoft.com/platform/support/policy/dotnet-core]]

**サポート期間終了の影響 [#r29d915d]
-End of support refers to the date when Microsoft no longer provides fixes, updates, or online technical assistance. As this date nears, make sure you have the latest available update* installed. Without Microsoft support, you will no longer receive security updates that can help protect your machine from harmful viruses, spyware, and other malicious software that can steal your personal information.

-Updates are cumulative, with each update built upon all of the updates that preceded it. A device needs to install the latest update to remain supported. Updates may include new features, fixes (security and/or non-security), or a combination of both. Not all features in an update will work on all devices. Update availability may vary, for example by country, region, network connectivity, or hardware capabilities (including, for example, free disk space).

*.NET Core 3.1 [#x91cc709]
-[[Download .NET Core 3.1:https://dotnet.microsoft.com/download/dotnet-core/3.1]]

-[[Microsoft、「.NET Core 3.1」を正式リリース ~3年間サポートされるLTS版:https://forest.watch.impress.co.jp/docs/news/1222358.html]]

*.NET Core 3.0 [#ucbd1afd]
-[[「.NET Core 3.0」正式版が登場。Windowsデスクトップアプリ開発可能、exeファイルを生成、マイクロサービス対応など - Publickey:https://b.hatena.ne.jp/entry/s/www.publickey1.jp/blog/19/net_core_30windowsexe.html]]
-[[Microsoft、「.NET Core 3.0」を正式リリース ~オープンソース化されたWPF/WinForms開発をサポート:https://forest.watch.impress.co.jp/docs/news/1208888.html]]

*.NET Core 2.1 [#x88226a1]
-[[Download .NET Core 2.1:https://dotnet.microsoft.com/download/dotnet-core/2.1]]

*.NET Core 2.0 [#bcc302c6]
-[[Download .NET Core 2.0:https://dotnet.microsoft.com/download/dotnet-core/2.0]]

**.NET Framework移植 [#uc37e573]
-[[.NET Core 3.0 をもって .NET Framework からの移植作業は完結:https://ufcpp.net/blog/2019/10/netcore3concludesfxporting/]]

**gRPC [#f2729d28]
-[[.NET Core 3.0 で gRPC がシームレスに統合されて素晴らしい件:https://blog.ecbeing.tech/entry/2019/09/24/114040]]


*.NET CLI [#n2ead31b]
|コマンド|説明|h
|dotnet new|言語に C# を使用して、クラス ライブラリまたはコンソール アプリ向けに有効なプロジェクトを初期化します。|
|dotnet restore|指定したプロジェクトの project.json ファイルで定義されている依存関係を復元します。通常、依存関係とはアプリで使用する NuGet パッケージです。|
|dotnet build|コードをビルドします。このコマンドは、プロジェクトの中間言語 (IL) バイナリを生成します。プロジェクトがコンソール アプリの場合、生成される出力は、すぐに実行できる実行可能ファイルです。既定では、build コマンドは、コマンドが呼び出されたディレクトリの bin ディレクトリに、ビルド済みのアセンブリと実行可能ファイル (該当する場合) を出力します。|
|dotnet test|優秀なツールは、必ずテストを実行できるようになっています。このコマンドは、project.json ファイルで指定できるランナーを使用して、一連のテストを実行できるようにします。現在サポートされているテスト ランナーは、xUnit と NUnit です。|
|dotnet publish|ターゲットのコンピューターで実行するためにアプリを公開します。|
|dotnet pack|pack コマンドは、プロジェクトを NuGet パッケージにパッケージ化します。出力される一連の nupkg ファイルは、フィードにアップロードするか、ローカル フォルダーをオーバーライドすることによって復元操作で使用されます。|
|dotnet run|run コマンドは、アプリをコンパイルして実行します。このコマンドで実行される操作は、Ctrl キーを押しながら F5 キーを押したときの操作と同じと考えられます。Visual Studio を使用しない点のみが異なります。|

*Razor Pages [#q5ca72f8]
-[[Introduction to Razor Pages in ASP.NET Core:https://docs.microsoft.com/en-us/aspnet/core/mvc/razor-pages/?tabs=visual-studio]]

*メモリ [#r1dd8960]
-[[System.Net.HttpListener が .NET Core の時だけメモリリークっぽい現象になる件の解決策:http://www.moonmile.net/blog/archives/9417]]

*CPU使用率 [#f77384b0]
-[[.Net Core Host process High CPU usage in Windows 2016 IIS in Asp.Net Core 2.2 Application:https://stackoverflow.com/questions/53928246/net-core-host-process-high-cpu-usage-in-windows-2016-iis-in-asp-net-core-2-2-ap]]

*トラブルシューティング [#wffc3b00]
**HTTP Error 502.5 - Process Failure [#s44115f0]
-[[HTTP Error 502.5 - Process Failure の解決方法:https://knkomko.hatenablog.com/entry/2019/08/25/215349]]
-[[Azure WebAppsでASP.NET CoreのHTTP Error 502.5が出た時の対策:https://blog.kokoni.jp/entry/2020/01/04/151337]]
-[[ASP.NET > aspcore2 > HTTP Error 502.5 - Process Failure:https://qiita.com/sugasaki/items/a327ec0766f291219dee]]

***原因 1:DLL不足有無の確認 [#vdeb551e]
-コマンドプロンプトで起動
-以下のようにエラーが出ずに起動すればOK
 C:\vae\www\html\apl>dotnet .\WebApl.dll
     :
 dbugHosting environment: Production
 Content root path: C:\var\www\html\apl
 Now listening on: http://localhost:5000
 Application started. Press Ctrl+C to shut down.
 : Microsoft.AspNetCore.Hosting.Internal.WebHost[4]
       Hosting started
 dbug: Microsoft.AspNetCore.Hosting.Internal.WebHost[0]
       Loaded hosting startup assembly WebApi
 Application is shutting down...
 dbug: Microsoft.AspNetCore.Hosting.Internal.WebHost[5]
       Hosting shutdown

-DLL不足がある場合はエラーとなるので、不足しているDLLを確認

***原因 2:web.config の記述ミス [#tafc2fa7]
-web.config が原因でこのエラーが出ることがある(実際あった)


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS