「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicrosofttech.osscons.jp/]]」は、「[[Open棟梁Project>https://github.com/OpenTouryoProject/]]」,「[[OSSコンソーシアム .NET開発基盤部会>https://www.osscons.jp/dotNetDevelopmentInfrastructure/]]」によって運営されています。 -戻る --[[ASP.NET MVC]] --[[ASP.NET Core]] ---[[ASP.NET Coreへの移行]] * 目次 [#b7dc983c] #contents *概要 [#s21b24c2] [[MVC5>ASP.NET MVC]]との差異について。 *詳細 [#jecafb31] **[[基盤部分>ASP.NET Coreへの移行]]の差異 [#v371dda5] ***[[フォルダ構成>ASP.NET Coreへの移行#xffddb5a]] [#d7aa0169] ***[[パッケージ・マネージャ>ASP.NET Coreへの移行#w4347dc8]] [#a0d7f438] ***[[構成>ASP.NET Coreへの移行#r671d85d]] [#g7618b69] -[[初期化>ASP.NET Coreへの移行#h3f1560e]] -[[DIのサポート>ASP.NET Coreへの移行#l75d198a]] ***[[ライブラリ>ASP.NET Coreへの移行#d22b8a0b]] [#c23a6530] -[[System.Web>ASP.NET Coreへの移行#d22b8a0b]] -[[Microsoft.Owin>ASP.NET Coreへの移行#gce2c3f9]] -[[未分類のAPI>ASP.NET Coreへの移行#ie8a29fa]] **ミドルウェア [#c26db810] ***[[認証>ASP.NET Coreへの移行#cd9d3413]] [#w89b1b65] ***[[EF Core>ASP.NET Coreへの移行#kfcd63f7]] [#u4cb51e3] ***[[MVC5>ASP.NET MVC]] との差異 [#u5fb846e] -[[M:Model>#qeabb466]] [#dcf6fa4b] -[[V:View>#y9c6bcbf]] [#i9c20449] -[[C:Controller>#rfed4b43]] [#e066a360] *Model [#qeabb466] *View [#y9c6bcbf] **Razor [#w6d9a557] 非互換は少ない模様。 **Tagヘルパー [#o6d55285] 従来のHtmlヘルパーは、 @Html.Label("FirstName", "First Name:", new {@class="caption"} などと記述していたが、~ Tagヘルパーでは、 <label class="caption" asp-for="FirstName"></label> と標準の HTML のように記述できる。 ***ScriptTagHelper [#k7a9156e] ***EnvironmentTagHelper [#pa10e781] ***参考 [#f60a13a8] -ASP.NET Core のタグ ヘルパー~ https://docs.microsoft.com/ja-jp/aspnet/core/mvc/views/tag-helpers/intro --ASP.NET Core の組み込みタグ ヘルパー~ https://docs.microsoft.com/ja-jp/aspnet/core/mvc/views/tag-helpers/built-in/ --ASP.NET Core でタグ ヘルパーを作成する~ https://docs.microsoft.com/ja-jp/aspnet/core/mvc/views/tag-helpers/authoring -ASP.NET CoreのScriptTagHelperについて調べてみる - Qiita~ https://qiita.com/takasan/items/13fdd17a9254b74046d3 -ASP.NET Core の環境タグ ヘルパー~ https://docs.microsoft.com/ja-jp/aspnet/core/mvc/views/tag-helpers/built-in/environment-tag-helper **その他 [#y7924d3f] ***[[WebViewPage>ASP.NET MVCの利用方法#nf2840bc]] が無い [#v8a8cba3] -RTMでは実装されていなかったようだが(?)、最近はあるらしい。 -継承する元がMicrosoft.AspNetCore.Mvc.Razor名前空間のRazorPageに変わっている。 ***Display Mode が無い [#tcb5e1be] レスポンシブ以外で PC とスマートフォンに対応できない。~ #独自にヘッダを参照して、Viewを振り分けるなどの対応が必要になる。 -Will ASP.NET Core still support DisplayMode? · Issue #5116 · aspnet/Mvc~ https://github.com/aspnet/Mvc/issues/5116#issuecomment-237907785 >There aren't any plans to bring back Display Modes.~ I just commented on aspnet/Razor#751 so we can keep the discussion going on there. Thanks! *Controller [#rfed4b43] *参考 [#d425994d] **MSDN magazine [#j399dd88] ***ASP.NET Core [#v2370824] -実際の ASP.NET Core MVC フィルター~ https://msdn.microsoft.com/magazine/mt767699 -ASP.NET Core MVC 向け機能スライス~ https://msdn.microsoft.com/magazine/mt763233 -Razor ページを使った簡単な ASP.NET MVC アプリ~ https://msdn.microsoft.com/ja-jp/magazine/mt842512 ***Cutting Edge [#c2139e64] -ASP.NET MVC Core ビューのガイドライン~ https://msdn.microsoft.com/ja-jp/magazine/mt845625 **内部リンク [#f61731d9] ***[[ASP.NET MVC]] [#m5f86a5f] ***[[ASP.NET MVCの用語]] [#ye27df22] ***[[ASP.NET MVCの利用方法]] [#c6d00b0b] ---- Tags: [[:.NET開発]], [[:.NET Core]], [[:ASP.NET]], [[:ASP.NET MVC]]