7. 7Presented By: Duran Hsieh
.NET CORE & .NET FRAMEWORK
• Install for Windows
• Visual Studio
• Visual Studio 2015 Update 3
• .NET Core 1.0.1 - VS 2015 Tooling Preview 2
• CI and Visual Studio Code
• .NET Core SDK 1.1 for Windows
8. 8Presented By: Duran Hsieh
.NET CORE & .NET FRAMEWORK
• Install for Windows
• Visual Studio
• Visual Studio 2017 RC
• CI and Visual Studio Code
• .NET Core SDK 1.0 RC4
9. 9Presented By: Duran Hsieh
.NET CORE & .NET FRAMEWORK
• Command line demo
• Visual studio code demo
28. 28Presented By: Duran Hsieh
MIDDLEWARE
Inset your short subtitle here to explain a little above title
• 建立middleware
• 透過 C# extension method
• UseRequestLoggerMiddleware()
• ApplicationBuilder 讀取 middleware
29. 29Presented By: Duran Hsieh
MIDDLEWARE
Inset your short subtitle here to explain a little above title
• 建立 middleware
• 必須在 configure 方法內呼叫
• 建構子必須包含 RequestDelegate
• 必須包含一個 invoke 方法
30. 30Presented By: Duran Hsieh
MIDDLEWARE
Inset your short subtitle here to explain a little above title
31. 31Presented By: Duran Hsieh
MIDDLEWARE
Inset your short subtitle here to explain a little above title
• middleware 應用
• JSON Web Token, JWT
32. 32Presented By: Duran Hsieh
MIDDLEWARE
Inset your short subtitle here to explain a little above title
43. 43Presented By: Duran Hsieh
ENVIRONMENT VARIABLE
.Net Core rc4之前的版本 與 Visual Studio 2015
需加入
否則發佈會遺失檔案
44. 44Presented By: Duran Hsieh
ENVIRONMENT VARIABLE
.Net Core rc4的版本 與 Visual Studio 2017 RC
ANS: 只需要加入專案即可
45. 45Presented By: Duran Hsieh
ENVIRONMENT VARIABLE
• 環境參數設定
• Name: ASPNETCORE_ENVIRONMENT
value : Development
• Name: ASPNETCORE_ENVIRONMENT
value : Staging
• Name: ASPNETCORE_ENVIRONMENT
value : Production
因為在發展中,所以變動幅度較大
雖然個人覺得Project.json相當方便,但新版的 .csproj 在 vs code 與vs中相當的實用
兩者關係為各自發展`、互相使用
1. Net core rc4 版本,dotnet new 指令有重大變更。
Youtube:
ASP.NET Core 最早稱為 ASP.NET vNext,之後稱為ASP.NET 5,不同於原先 ASP.NET 框架,為微軟製作新版的 ASP.NET。
具有輕量與可組裝的特性。
開源專案。
廣為人知的特色為能在Windows, OSX, Linux 等相關平台上運行,為微軟跨平台開發框架。
放棄 System.Web 組套件 (開發階段相當不適應)