ASP.NET Core 2.1: The Future of Web Apps

Shahed Chowdhuri
Shahed ChowdhuriAuthor, Sr. Tech Evangelist @ MSFT, 1776 Mentor, Blogger, Speaker, App/Game Developer em Microsoft
ASP.NET Core 2.1
Shahed Chowdhuri
Sr. Technical Evangelist @ Microsoft
@shahedC
WakeUpAndCode.com
Cross-Platform Web Apps
Agenda
Introduction
> .NET (Framework & Core)
> ASP.NET Core
> Visual Studio & VS Code
References + Wrap-up
Introduction
ASP.NET
Info and Downloads: http://www.asp.net/
.NET Core for Cross-Platform Dev
.NET Core: https://www.microsoft.com/net
.NET Across Windows/Web Platforms
http://blogs.msdn.com/b/dotnet/archive/2014/12/04/introducing-net-core.aspx
ASP.NET Core 2.1: The Future of Web Apps
ASP.NET
Web API
Active
Server
Pages
(Classic
ASP)
ASP.NET
(Web
Forms)
ASP.NET
MVC
1/2/3/4/5
ASP.NET
Web Pages
Evolution of ASP and ASP .NET
ASP.NET
Core MVC
Unified
MVC, Web
API and
Razor
Web
Pages
Names & Version Numbers
C# 7.x in VS2017
https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/
Agenda
Introduction
> .NET (Framework & Core)
> ASP.NET Core
> Visual Studio & VS Code
References + Wrap-up
.NET Framework
& .NET Core
ASP.NET Core High-Level Overview
Compilation Process
What About .NET Framework 4.6+?
Core is
4.7
ASP .NET Core
ASP.NET Core Features
ASP.NET Core Summary
Relevant XKCD Comic
https://xkcd.com/303/
ASP .NET Core MVC
MVC Web App Basics
Controller
Model
View
User Requests
Updates
Model
Gets
Data
Updates
View
MVC (Web) Controllers
public class HumanController : Controller
{
private readonly ApplicationDbContext _context;
public HumanController(ApplicationDbContext context) {}
// GET: Human, Human/Details/5
public async Task<IActionResult> Index() {}
public async Task<IActionResult> Details(int? id) {}
// GET: Human/Create
public IActionResult Create() {}
// POST: Human
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("Id,FirstName,LastName")] Human human) {}
// GET: Human/Edit/5
public async Task<IActionResult> Edit(int? id) {}
// POST: Human/Edit/5
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("Id,FirstName,LastName")] Human human) {}
}
MVC (API) Controllers
public class ValuesController : Controller
{
// GET: api/Values, api/Values/5
[HttpGet]
public IEnumerable<string> Get() {}
[HttpGet("{id}", Name = "Get")]
public string Get(int id) {}
// POST: api/Values
[HttpPost]
public void Post([FromBody]string value) {}
// PUT: api/Values/5
[HttpPut("{id}")]
public void Put(int id, [FromBody]string value) {}
// DELETE: api/ApiWithActions/5
[HttpDelete("{id}")]
public void Delete(int id) {}
}
MVC (Web) Views
@model NiceStackWeb.Models.Human
@{
ViewData["Title"] = "Details";
}
<h2>Details</h2>
<div>
<h4>Human</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.FirstName)
</dt>
<dd>
@Html.DisplayFor(model => model.FirstName)
</dd> ...
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
<a asp-action="Index">Back to List</a>
</div>
MVC Models
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
public class Human
{
[Key]
public int Id { get; set; }
[DisplayName("First Name")]
public string FirstName { get; set; }
[DisplayName("First Name")]
public string LastName { get; set; }
}
New Razor Pages!
http://www.hishambinateya.com/welcome-razor-pages
Intro to Razor Pages
https://docs.microsoft.com/en-us/aspnet/core/mvc/razor-pages
Razor Syntax
SignalR in ASP.NET Core 2.1 (Preview)
https://blogs.msdn.microsoft.com/webdev/2018/02/27/asp-net-core-2-1-0-preview1-getting-started-with-signalr
using Microsoft.AspNetCore.SignalR;
namespace SignalRTutorial.Hubs
{
[Authorize]
public class ChatHub : Hub
{
public override async Task OnConnectedAsync()
{
await Clients.All.SendAsync("SendAction", Context.User.Identity.Name, "joined");
}
public override async Task OnDisconnectedAsync(Exception ex)
{
await Clients.All.SendAsync("SendAction", Context.User.Identity.Name, "left");
}
public async Task Send(string message)
{
await Clients.All.SendAsync("SendMessage", Context.User.Identity.Name, message);
}
}
}
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• Real-time web development
• New Typescript client, jQuery
• Built-in Hub protocols:
• JSON-based for text
• MessagePack for binary
• Improved scale-out model
• Sticky sessions required
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• UseHttpsRedirection by default
• HSTS protocol support (non-dev)
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• New ApiController attribute
• Auto model validation
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• Rich Swagger support
• Easier API documentation
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• New type ActionResult<T>
• Indicate response type for any
action result
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• HttpClient as a service
• Register, configure, consume
HttpClient instances
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• ASP.NET Core (native IIS) Module
• Hooks into IIS pipeline
• Improved Performance
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• Default UI implemented in a library
• Available as NuGet package
• Enable via Startup class
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• Compliance for EU General Data
Protection Regulation reqts
• Request user consent for info
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• Mix authentication schemes
• e.g. Bearer tokens, cookie auth
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• Compiled during build process
• Improved startup performance
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• Razor UI as class library
• Share across projects
• Share as Nuget package
ASP.NET Core 2.1: What’s New?
http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
• Improved end-to-end testing
• e.g. routing, filters, controllers,
actions, views and pages
How about Entity Framework?
DB
ORM
Entities
in Code
Core
)
4.6+
4.6+
ASP.NET Core 2.1: The Future of Web Apps
Visual Studio 2017
& VS Code
New Installer!
File  New Project  Web
• ASP .NET Core Web App
• Web App (4.x)
Select a Template
1.0 , 1.1, 2.0 Templates
• Empty
• Web API
• Web App (Razor)
• Web App (MVC)
• Angular
• React.js
• React.js & Redux
Other settings:
• Authentication
• Docker Support
VS 2017 Preview with ASP.NET Core 2.1
https://www.visualstudio.com/vs/preview/
.NET Core SDK 2.1.300-preview1
https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-preview1
Select a Template (VS 2017 Preview)
Also includes:
ASP .NET Core 2.1
ASP.NET Core Runtime Extension on Azure
https://blogs.msdn.microsoft.com/webdev/2018/02/27/asp-net-core-2-1-0-preview1-using-asp-net-core-previews-on-azure-app-service/
Visual Studio Code
Download https://code.visualstudio.com
Startup.cs Configuration
project.json
.csproj project file 2.0
.csproj project file 2.1
https://github.com/aspnet/Announcements/issues/287
Right-click  (Project) Properties
Choose Profile While Debugging
Live Unit Testing
https://blogs.msdn.microsoft.com/visualstudio/2016/11/18/live-unit-testing-visual-studio-2017-rc/
DEMO
Migrating from MVC to MVC Core
https://docs.microsoft.com/en-us/aspnet/core/migration/mvc
dotnet/cli on GitHub
This repo
contains
the .NET
Core
command-
line (CLI)
tools, used
for
building
.NET Core
apps and
libraries.
GitHub: https://github.com/dotnet/cli
.NET Core 2.x CLI Commands
https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x
>dotnet --version
>dotnet --info
>dotnet new <TEMPLATE> --auth <AUTH_TYPE> -o <OUTPUT_DIR>
>dotnet new console -o MyConsoleApp
>dotnet new mvc --auth Individual -o MyMvcWebApp
>dotnet restore
>dotnet build
>dotnet run
<TEMPLATE> = web | mvc | razor | angular | react | webapi
<AUTH_TYPE> for mvc,razor = None | Individual | SingleOrg | Windows
Azure CLI Commands
https://docs.microsoft.com/en-us/azure/app-service/scripts/app-service-cli-deploy-github
>az login
>az group create -l <REGION> -n <RSG>
>az appservice plan create -g <RSG> -n <ASP> --sku <PLAN> (e.g. F1)
>az webapp create -g <RSG> -p <ASP> -n <APP>
>git init
>git add .
>git commit -m "<COMMIT MESSAGE>“
>az webapp deployment user set --user-name <USER>
>az webapp deployment source config-local-git -g <RSG> -n <APP> --out tsv
>git remote add azure <GIT URL>
>git push azure master
RESULT  http://<APP>.azurewebsites.net
GIT URL  https://<USER>@<APP>.scm.azurewebsites.net/<APP>.git
Agenda
Introduction
> .NET (Framework & Core)
> ASP.NET Core
> Visual Studio & VS Code
References + Wrap-up
References
& Wrap-up
Blog Sources
Scott Hanselman’s Blog: https://www.hanselman.com/blog/
.NET Web Dev Blog: https://blogs.msdn.microsoft.com/webdev/
Visual Studio 2017 Launch Videos
https://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-2017-Launch?sort=viewed&direction=asc
Build 2017: ASP .NET Core 2.0
https://channel9.msdn.com/Events/Build/2017/b8048
.NET Core 2.1 Roadmap PT.1
https://channel9.msdn.com/Shows/On-NET/NET-Core-21-Roadmap-PT1
.NET Core 2.1 Roadmap PT.2
https://channel9.msdn.com/Shows/On-NET/NET-Core-21-Roadmap-PT2
Build Conference 2018 http://build.microsoft.com
Jeff Fritz on YouTube
https://www.youtube.com/watch?v=Oriqg6qC4hc
Other Video Sources
MSDN Channel 9: https://channel9.msdn.com
.NET Conf: http://www.dotnetconf.net
Docs + Tutorials
Tutorials: https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/
Docs: https://blogs.msdn.microsoft.com/webdev/2017/02/07/asp-net-documentation-now-on-docs-microsoft-com/
ASP.NET Core 2.0 Release
https://blogs.msdn.microsoft.com/webdev/2017/08/14/announcing-asp-net-core-2-0/
ASP.NET Core 2.1 Roadmap
https://blogs.msdn.microsoft.com/webdev/2018/02/02/asp-net-core-2-1-roadmap/
.NET Core Roadmap
https://github.com/dotnet/core/blob/master/roadmap.md
MEAN Stack…?
81
NICE Stack!
•.NET
•IIS (optional)
•C#
•Entity Framework
nicestack.io
82
References
• ASP .NET: http://www.asp.net
• .NET Core: https://www.microsoft.com/net
• .NET Web Dev Blog: https://blogs.msdn.microsoft.com/webdev
• Scott Hanselman’s Blog: https://www.hanselman.com/blog
• .NET Conf: http://www.dotnetconf.net
• MSDN Channel 9: https://channel9.msdn.com
• Tutorials: https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app
• C# 7: https://docs.microsoft.com/en-us/dotnet/articles/csharp/csharp-7
• ASP.NET Core Roadmap: https://github.com/aspnet/Home/wiki/Roadmap
• .NET Core Roadmap: https://github.com/dotnet/core/blob/master/roadmap.md
Other Resources
• New Razor Pages: http://www.hishambinateya.com/welcome-razor-pages
• Intro to Razor: https://docs.microsoft.com/en-us/aspnet/core/mvc/razor-pages
• Live Unit Testing: https://blogs.msdn.microsoft.com/visualstudio/2016/11/18/live-
unit-testing-visual-studio-2017-rc
• Migrating from MVC to MVC Core: https://docs.microsoft.com/en-
us/aspnet/core/migration/mvc
• Visual Studio Code: https://code.visualstudio.com
• dotnet/cli on GitHub: https://github.com/dotnet/cli
Q & A
Agenda
Introduction
> .NET (Framework & Core)
> ASP.NET Core
> Visual Studio & VS Code
References + Wrap-up
Email: shchowd@microsoft.com  Twitter: @shahedC
1 de 87

Recomendados

ASP.NET Core 2.1: The Future of Web Apps por
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsShahed Chowdhuri
4.1K visualizações90 slides
ASP.NET Core 2.0: The Future of Web Apps por
ASP.NET Core 2.0: The Future of Web AppsASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web AppsShahed Chowdhuri
4.1K visualizações58 slides
ASP.NET Core 2.1: The Future of Web Apps por
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsShahed Chowdhuri
2.8K visualizações89 slides
Php On Windows por
Php On WindowsPhp On Windows
Php On WindowsGuy Burstein
1.4K visualizações23 slides
PHP konferencija - Microsoft por
PHP konferencija - MicrosoftPHP konferencija - Microsoft
PHP konferencija - Microsoftnusmas
931 visualizações34 slides
Convert your Full Trust Solutions to the SharePoint Framework (SPFx) por
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)Brian Culver
243 visualizações25 slides

Mais conteúdo relacionado

Mais procurados

ASP.NET Core MVC + Web API with Overview por
ASP.NET Core MVC + Web API with OverviewASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with OverviewShahed Chowdhuri
4.6K visualizações23 slides
SPUnite17 Timer Jobs Event Handlers por
SPUnite17 Timer Jobs Event HandlersSPUnite17 Timer Jobs Event Handlers
SPUnite17 Timer Jobs Event HandlersNCCOMMS
160 visualizações43 slides
SharePoint Development with the SharePoint Framework por
SharePoint Development with the SharePoint FrameworkSharePoint Development with the SharePoint Framework
SharePoint Development with the SharePoint FrameworkJoAnna Cheshire
435 visualizações15 slides
Application Lifecycle Management for Office 365 development por
Application Lifecycle Management for Office 365 developmentApplication Lifecycle Management for Office 365 development
Application Lifecycle Management for Office 365 developmentChris O'Brien
1.2K visualizações35 slides
Microsoft Azure WebJobs por
Microsoft Azure WebJobsMicrosoft Azure WebJobs
Microsoft Azure WebJobsKashif Imran
1.2K visualizações22 slides
Asp.net core 1.0 (Peter Himschoot) por
Asp.net core 1.0 (Peter Himschoot)Asp.net core 1.0 (Peter Himschoot)
Asp.net core 1.0 (Peter Himschoot)Visug
693 visualizações20 slides

Mais procurados(20)

ASP.NET Core MVC + Web API with Overview por Shahed Chowdhuri
ASP.NET Core MVC + Web API with OverviewASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with Overview
Shahed Chowdhuri4.6K visualizações
SPUnite17 Timer Jobs Event Handlers por NCCOMMS
SPUnite17 Timer Jobs Event HandlersSPUnite17 Timer Jobs Event Handlers
SPUnite17 Timer Jobs Event Handlers
NCCOMMS160 visualizações
SharePoint Development with the SharePoint Framework por JoAnna Cheshire
SharePoint Development with the SharePoint FrameworkSharePoint Development with the SharePoint Framework
SharePoint Development with the SharePoint Framework
JoAnna Cheshire435 visualizações
Application Lifecycle Management for Office 365 development por Chris O'Brien
Application Lifecycle Management for Office 365 developmentApplication Lifecycle Management for Office 365 development
Application Lifecycle Management for Office 365 development
Chris O'Brien1.2K visualizações
Microsoft Azure WebJobs por Kashif Imran
Microsoft Azure WebJobsMicrosoft Azure WebJobs
Microsoft Azure WebJobs
Kashif Imran1.2K visualizações
Asp.net core 1.0 (Peter Himschoot) por Visug
Asp.net core 1.0 (Peter Himschoot)Asp.net core 1.0 (Peter Himschoot)
Asp.net core 1.0 (Peter Himschoot)
Visug693 visualizações
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx) por Chris O'Brien
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
Chris OBrien - Pitfalls when developing with the SharePoint Framework (SPFx)
Chris O'Brien9.8K visualizações
Develop and Run PHP on Windows. Say(Hello); to WordPress on Azure por Valent Mustamin
Develop and Run PHP on Windows. Say(Hello); to WordPress on AzureDevelop and Run PHP on Windows. Say(Hello); to WordPress on Azure
Develop and Run PHP on Windows. Say(Hello); to WordPress on Azure
Valent Mustamin2.5K visualizações
Meetup Comunidad TESH: My SPFx slides por Vladimir Medina
Meetup Comunidad TESH: My SPFx slidesMeetup Comunidad TESH: My SPFx slides
Meetup Comunidad TESH: My SPFx slides
Vladimir Medina211 visualizações
Best of Microsoft Dev Camp 2015 por Bluegrass Digital
Best of Microsoft Dev Camp 2015Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015
Bluegrass Digital615 visualizações
TypeScript and SharePoint Framework por Bob German
TypeScript and SharePoint FrameworkTypeScript and SharePoint Framework
TypeScript and SharePoint Framework
Bob German1.4K visualizações
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference por Chris O'Brien
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - referenceChris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference
Chris O'Brien21.6K visualizações
Introduction to SharePoint Framework (SPFx) por Fabio Franzini
Introduction to SharePoint Framework (SPFx)Introduction to SharePoint Framework (SPFx)
Introduction to SharePoint Framework (SPFx)
Fabio Franzini1.7K visualizações
Future of SharePoint Dev SPFx Extensions por Alex Terentiev
Future of SharePoint Dev   SPFx ExtensionsFuture of SharePoint Dev   SPFx Extensions
Future of SharePoint Dev SPFx Extensions
Alex Terentiev767 visualizações
Angular.js in XPages por Mark Roden
Angular.js in XPagesAngular.js in XPages
Angular.js in XPages
Mark Roden9.9K visualizações
Php on azure por Anders Lybecker
Php on azurePhp on azure
Php on azure
Anders Lybecker933 visualizações
Automating Web Application Deployment por Mathew Byrne
Automating Web Application DeploymentAutomating Web Application Deployment
Automating Web Application Deployment
Mathew Byrne1.6K visualizações
Low-Code Testing Tool por Niels de Bruijn
Low-Code Testing ToolLow-Code Testing Tool
Low-Code Testing Tool
Niels de Bruijn4.9K visualizações
Angular on ASP.NET MVC 6 por Noam Kfir
Angular on ASP.NET MVC 6Angular on ASP.NET MVC 6
Angular on ASP.NET MVC 6
Noam Kfir2K visualizações
Application innovation & Developer Productivity por Kushan Lahiru Perera
Application innovation & Developer ProductivityApplication innovation & Developer Productivity
Application innovation & Developer Productivity
Kushan Lahiru Perera466 visualizações

Similar a ASP.NET Core 2.1: The Future of Web Apps

Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5) por
Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)
Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)Arrow Consulting & Design
1.6K visualizações42 slides
ASP .Net Core SPA Templates por
ASP .Net Core SPA TemplatesASP .Net Core SPA Templates
ASP .Net Core SPA TemplatesEamonn Boyle
376 visualizações28 slides
ASP.NET Core 1.0 Overview por
ASP.NET Core 1.0 OverviewASP.NET Core 1.0 Overview
ASP.NET Core 1.0 OverviewShahed Chowdhuri
7K visualizações54 slides
ASP.NET Core 1.0 Overview por
ASP.NET Core 1.0 OverviewASP.NET Core 1.0 Overview
ASP.NET Core 1.0 OverviewShahed Chowdhuri
3.1K visualizações59 slides
Deploying windows containers with kubernetes por
Deploying windows containers with kubernetesDeploying windows containers with kubernetes
Deploying windows containers with kubernetesBen Hall
367 visualizações109 slides
Websites, Web Services and Cloud Applications with Visual Studio por
Websites, Web Services and Cloud Applications with Visual StudioWebsites, Web Services and Cloud Applications with Visual Studio
Websites, Web Services and Cloud Applications with Visual StudioMicrosoft Visual Studio
4.9K visualizações30 slides

Similar a ASP.NET Core 2.1: The Future of Web Apps(20)

Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5) por Arrow Consulting & Design
Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)
Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)
Arrow Consulting & Design1.6K visualizações
ASP .Net Core SPA Templates por Eamonn Boyle
ASP .Net Core SPA TemplatesASP .Net Core SPA Templates
ASP .Net Core SPA Templates
Eamonn Boyle376 visualizações
ASP.NET Core 1.0 Overview por Shahed Chowdhuri
ASP.NET Core 1.0 OverviewASP.NET Core 1.0 Overview
ASP.NET Core 1.0 Overview
Shahed Chowdhuri7K visualizações
ASP.NET Core 1.0 Overview por Shahed Chowdhuri
ASP.NET Core 1.0 OverviewASP.NET Core 1.0 Overview
ASP.NET Core 1.0 Overview
Shahed Chowdhuri3.1K visualizações
Deploying windows containers with kubernetes por Ben Hall
Deploying windows containers with kubernetesDeploying windows containers with kubernetes
Deploying windows containers with kubernetes
Ben Hall367 visualizações
Websites, Web Services and Cloud Applications with Visual Studio por Microsoft Visual Studio
Websites, Web Services and Cloud Applications with Visual StudioWebsites, Web Services and Cloud Applications with Visual Studio
Websites, Web Services and Cloud Applications with Visual Studio
Microsoft Visual Studio4.9K visualizações
ASP.NET Core 1.0 Overview: Post-RC2 por Shahed Chowdhuri
ASP.NET Core 1.0 Overview: Post-RC2ASP.NET Core 1.0 Overview: Post-RC2
ASP.NET Core 1.0 Overview: Post-RC2
Shahed Chowdhuri4.4K visualizações
.NET Fest 2017. Андрей Антиликаторов. Проектирование и разработка приложений ... por NETFest
.NET Fest 2017. Андрей Антиликаторов. Проектирование и разработка приложений ....NET Fest 2017. Андрей Антиликаторов. Проектирование и разработка приложений ...
.NET Fest 2017. Андрей Антиликаторов. Проектирование и разработка приложений ...
NETFest644 visualizações
ASP.NET Presentation por Rasel Khan
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
Rasel Khan2.5K visualizações
Introduction to ASP.NET Core por Miroslav Popovic
Introduction to ASP.NET CoreIntroduction to ASP.NET Core
Introduction to ASP.NET Core
Miroslav Popovic435 visualizações
ASP.NET Core 1.0 Overview: Pre-RC2 por Shahed Chowdhuri
ASP.NET Core 1.0 Overview: Pre-RC2ASP.NET Core 1.0 Overview: Pre-RC2
ASP.NET Core 1.0 Overview: Pre-RC2
Shahed Chowdhuri4.8K visualizações
Learning ASP.NET 5 and MVC 6 por Ido Flatow
Learning ASP.NET 5 and MVC 6Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6
Ido Flatow6.4K visualizações
ASP.NET Core 1.0 por Ido Flatow
ASP.NET Core 1.0ASP.NET Core 1.0
ASP.NET Core 1.0
Ido Flatow701 visualizações
The next step from Microsoft - Vnext (Srdjan Poznic) por Geekstone
The next step from Microsoft - Vnext (Srdjan Poznic)The next step from Microsoft - Vnext (Srdjan Poznic)
The next step from Microsoft - Vnext (Srdjan Poznic)
Geekstone131 visualizações
Creating Dynamic Web Application Using ASP.Net 3 5_MVP Alezandra Buencamino N... por Quek Lilian
Creating Dynamic Web Application Using ASP.Net 3 5_MVP Alezandra Buencamino N...Creating Dynamic Web Application Using ASP.Net 3 5_MVP Alezandra Buencamino N...
Creating Dynamic Web Application Using ASP.Net 3 5_MVP Alezandra Buencamino N...
Quek Lilian6.5K visualizações
.NET Core, ASP.NET Core Course, Session 18 por aminmesbahi
 .NET Core, ASP.NET Core Course, Session 18 .NET Core, ASP.NET Core Course, Session 18
.NET Core, ASP.NET Core Course, Session 18
aminmesbahi223 visualizações
Vijay Oscon por vijayrvr
Vijay OsconVijay Oscon
Vijay Oscon
vijayrvr380 visualizações
SoCal Code Camp 2011 - ASP.NET MVC 4 por Jon Galloway
SoCal Code Camp 2011 - ASP.NET MVC 4SoCal Code Camp 2011 - ASP.NET MVC 4
SoCal Code Camp 2011 - ASP.NET MVC 4
Jon Galloway1.6K visualizações
Deep Dive OpenShitt on Azure & .NET Core on OpenShift por Takayoshi Tanaka
Deep Dive OpenShitt on Azure & .NET Core on OpenShiftDeep Dive OpenShitt on Azure & .NET Core on OpenShift
Deep Dive OpenShitt on Azure & .NET Core on OpenShift
Takayoshi Tanaka4.2K visualizações

Mais de Shahed Chowdhuri

Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services por
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive ServicesCloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive ServicesShahed Chowdhuri
3.4K visualizações44 slides
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services por
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive ServicesCloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive ServicesShahed Chowdhuri
3.5K visualizações43 slides
Microsoft Cognitive Services por
Microsoft Cognitive ServicesMicrosoft Cognitive Services
Microsoft Cognitive ServicesShahed Chowdhuri
4.4K visualizações73 slides
Intro to Bot Framework v3 with DB por
Intro to Bot Framework v3 with DBIntro to Bot Framework v3 with DB
Intro to Bot Framework v3 with DBShahed Chowdhuri
2.4K visualizações46 slides
Game On with Windows & Xbox One @ .NET Conf UY por
Game On with Windows & Xbox One @ .NET Conf UYGame On with Windows & Xbox One @ .NET Conf UY
Game On with Windows & Xbox One @ .NET Conf UYShahed Chowdhuri
4.2K visualizações47 slides
Game On with Windows & Xbox One! por
Game On with Windows & Xbox One!Game On with Windows & Xbox One!
Game On with Windows & Xbox One!Shahed Chowdhuri
442 visualizações47 slides

Mais de Shahed Chowdhuri(20)

Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services por Shahed Chowdhuri
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive ServicesCloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
Shahed Chowdhuri3.4K visualizações
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services por Shahed Chowdhuri
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive ServicesCloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
Shahed Chowdhuri3.5K visualizações
Microsoft Cognitive Services por Shahed Chowdhuri
Microsoft Cognitive ServicesMicrosoft Cognitive Services
Microsoft Cognitive Services
Shahed Chowdhuri4.4K visualizações
Intro to Bot Framework v3 with DB por Shahed Chowdhuri
Intro to Bot Framework v3 with DBIntro to Bot Framework v3 with DB
Intro to Bot Framework v3 with DB
Shahed Chowdhuri2.4K visualizações
Game On with Windows & Xbox One @ .NET Conf UY por Shahed Chowdhuri
Game On with Windows & Xbox One @ .NET Conf UYGame On with Windows & Xbox One @ .NET Conf UY
Game On with Windows & Xbox One @ .NET Conf UY
Shahed Chowdhuri4.2K visualizações
Game On with Windows & Xbox One! por Shahed Chowdhuri
Game On with Windows & Xbox One!Game On with Windows & Xbox One!
Game On with Windows & Xbox One!
Shahed Chowdhuri442 visualizações
Going Serverless with Azure Functions por Shahed Chowdhuri
Going Serverless with Azure FunctionsGoing Serverless with Azure Functions
Going Serverless with Azure Functions
Shahed Chowdhuri3.4K visualizações
Azure for Hackathons por Shahed Chowdhuri
Azure for HackathonsAzure for Hackathons
Azure for Hackathons
Shahed Chowdhuri2K visualizações
Intro to Xamarin: Cross-Platform Mobile Application Development por Shahed Chowdhuri
Intro to Xamarin: Cross-Platform Mobile Application DevelopmentIntro to Xamarin: Cross-Platform Mobile Application Development
Intro to Xamarin: Cross-Platform Mobile Application Development
Shahed Chowdhuri322 visualizações
Xbox One Dev Mode por Shahed Chowdhuri
Xbox One Dev ModeXbox One Dev Mode
Xbox One Dev Mode
Shahed Chowdhuri358 visualizações
What's New at Microsoft? por Shahed Chowdhuri
What's New at Microsoft?What's New at Microsoft?
What's New at Microsoft?
Shahed Chowdhuri2.1K visualizações
Capture the Cloud with Azure por Shahed Chowdhuri
Capture the Cloud with AzureCapture the Cloud with Azure
Capture the Cloud with Azure
Shahed Chowdhuri2K visualizações
Intro to HoloLens Development + Windows Mixed Reality por Shahed Chowdhuri
Intro to HoloLens Development + Windows Mixed RealityIntro to HoloLens Development + Windows Mixed Reality
Intro to HoloLens Development + Windows Mixed Reality
Shahed Chowdhuri2K visualizações
Intro to Bot Framework v3 por Shahed Chowdhuri
Intro to Bot Framework v3Intro to Bot Framework v3
Intro to Bot Framework v3
Shahed Chowdhuri3.9K visualizações
Azure: PaaS or IaaS por Shahed Chowdhuri
Azure: PaaS or IaaSAzure: PaaS or IaaS
Azure: PaaS or IaaS
Shahed Chowdhuri6.6K visualizações
Capture the Cloud with Azure por Shahed Chowdhuri
Capture the Cloud with AzureCapture the Cloud with Azure
Capture the Cloud with Azure
Shahed Chowdhuri3.6K visualizações
Intro to HoloLens Development por Shahed Chowdhuri
Intro to HoloLens DevelopmentIntro to HoloLens Development
Intro to HoloLens Development
Shahed Chowdhuri9.3K visualizações
Intro to Bot Framework por Shahed Chowdhuri
Intro to Bot FrameworkIntro to Bot Framework
Intro to Bot Framework
Shahed Chowdhuri7.9K visualizações
Xbox One Dev Mode por Shahed Chowdhuri
Xbox One Dev ModeXbox One Dev Mode
Xbox One Dev Mode
Shahed Chowdhuri7.8K visualizações
Intro to Xamarin por Shahed Chowdhuri
Intro to XamarinIntro to Xamarin
Intro to Xamarin
Shahed Chowdhuri7.8K visualizações

Último

Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue por
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueShapeBlue
179 visualizações7 slides
DRBD Deep Dive - Philipp Reisner - LINBIT por
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBITShapeBlue
140 visualizações21 slides
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ por
Confidence in CloudStack - Aron Wagner, Nathan Gleason - AmericConfidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
Confidence in CloudStack - Aron Wagner, Nathan Gleason - AmericShapeBlue
88 visualizações9 slides
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates por
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesShapeBlue
210 visualizações15 slides
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... por
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...Bernd Ruecker
50 visualizações69 slides
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ... por
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...ShapeBlue
79 visualizações17 slides

Último(20)

Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue por ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue179 visualizações
DRBD Deep Dive - Philipp Reisner - LINBIT por ShapeBlue
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue140 visualizações
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ por ShapeBlue
Confidence in CloudStack - Aron Wagner, Nathan Gleason - AmericConfidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
ShapeBlue88 visualizações
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates por ShapeBlue
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates
ShapeBlue210 visualizações
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... por Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker50 visualizações
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ... por ShapeBlue
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
ShapeBlue79 visualizações
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... por ShapeBlue
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue123 visualizações
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... por The Digital Insurer
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...
The Digital Insurer86 visualizações
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue por ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue93 visualizações
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava... por ShapeBlue
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
ShapeBlue101 visualizações
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... por ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue154 visualizações
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT por ShapeBlue
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
ShapeBlue166 visualizações
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... por ShapeBlue
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
ShapeBlue63 visualizações
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue por ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
ShapeBlue222 visualizações
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T por ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue112 visualizações
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... por ShapeBlue
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue85 visualizações
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... por ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue138 visualizações
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue por ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
ShapeBlue103 visualizações
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ... por ShapeBlue
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
ShapeBlue144 visualizações
Digital Personal Data Protection (DPDP) Practical Approach For CISOs por Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash153 visualizações

ASP.NET Core 2.1: The Future of Web Apps

  • 1. ASP.NET Core 2.1 Shahed Chowdhuri Sr. Technical Evangelist @ Microsoft @shahedC WakeUpAndCode.com Cross-Platform Web Apps
  • 2. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio & VS Code References + Wrap-up
  • 4. ASP.NET Info and Downloads: http://www.asp.net/
  • 5. .NET Core for Cross-Platform Dev .NET Core: https://www.microsoft.com/net
  • 6. .NET Across Windows/Web Platforms http://blogs.msdn.com/b/dotnet/archive/2014/12/04/introducing-net-core.aspx
  • 8. ASP.NET Web API Active Server Pages (Classic ASP) ASP.NET (Web Forms) ASP.NET MVC 1/2/3/4/5 ASP.NET Web Pages Evolution of ASP and ASP .NET ASP.NET Core MVC Unified MVC, Web API and Razor Web Pages
  • 9. Names & Version Numbers
  • 10. C# 7.x in VS2017 https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/
  • 11. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio & VS Code References + Wrap-up
  • 15. What About .NET Framework 4.6+? Core is 4.7
  • 21. MVC Web App Basics Controller Model View User Requests Updates Model Gets Data Updates View
  • 22. MVC (Web) Controllers public class HumanController : Controller { private readonly ApplicationDbContext _context; public HumanController(ApplicationDbContext context) {} // GET: Human, Human/Details/5 public async Task<IActionResult> Index() {} public async Task<IActionResult> Details(int? id) {} // GET: Human/Create public IActionResult Create() {} // POST: Human [HttpPost] [ValidateAntiForgeryToken] public async Task<IActionResult> Create([Bind("Id,FirstName,LastName")] Human human) {} // GET: Human/Edit/5 public async Task<IActionResult> Edit(int? id) {} // POST: Human/Edit/5 [HttpPost] [ValidateAntiForgeryToken] public async Task<IActionResult> Edit(int id, [Bind("Id,FirstName,LastName")] Human human) {} }
  • 23. MVC (API) Controllers public class ValuesController : Controller { // GET: api/Values, api/Values/5 [HttpGet] public IEnumerable<string> Get() {} [HttpGet("{id}", Name = "Get")] public string Get(int id) {} // POST: api/Values [HttpPost] public void Post([FromBody]string value) {} // PUT: api/Values/5 [HttpPut("{id}")] public void Put(int id, [FromBody]string value) {} // DELETE: api/ApiWithActions/5 [HttpDelete("{id}")] public void Delete(int id) {} }
  • 24. MVC (Web) Views @model NiceStackWeb.Models.Human @{ ViewData["Title"] = "Details"; } <h2>Details</h2> <div> <h4>Human</h4> <hr /> <dl class="dl-horizontal"> <dt> @Html.DisplayNameFor(model => model.FirstName) </dt> <dd> @Html.DisplayFor(model => model.FirstName) </dd> ... </dl> </div> <div> <a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> | <a asp-action="Index">Back to List</a> </div>
  • 25. MVC Models using System.ComponentModel; using System.ComponentModel.DataAnnotations; public class Human { [Key] public int Id { get; set; } [DisplayName("First Name")] public string FirstName { get; set; } [DisplayName("First Name")] public string LastName { get; set; } }
  • 27. Intro to Razor Pages https://docs.microsoft.com/en-us/aspnet/core/mvc/razor-pages
  • 29. SignalR in ASP.NET Core 2.1 (Preview) https://blogs.msdn.microsoft.com/webdev/2018/02/27/asp-net-core-2-1-0-preview1-getting-started-with-signalr using Microsoft.AspNetCore.SignalR; namespace SignalRTutorial.Hubs { [Authorize] public class ChatHub : Hub { public override async Task OnConnectedAsync() { await Clients.All.SendAsync("SendAction", Context.User.Identity.Name, "joined"); } public override async Task OnDisconnectedAsync(Exception ex) { await Clients.All.SendAsync("SendAction", Context.User.Identity.Name, "left"); } public async Task Send(string message) { await Clients.All.SendAsync("SendMessage", Context.User.Identity.Name, message); } } }
  • 30. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/
  • 31. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • Real-time web development • New Typescript client, jQuery • Built-in Hub protocols: • JSON-based for text • MessagePack for binary • Improved scale-out model • Sticky sessions required
  • 32. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • UseHttpsRedirection by default • HSTS protocol support (non-dev)
  • 33. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • New ApiController attribute • Auto model validation
  • 34. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • Rich Swagger support • Easier API documentation
  • 35. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • New type ActionResult<T> • Indicate response type for any action result
  • 36. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • HttpClient as a service • Register, configure, consume HttpClient instances
  • 37. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • ASP.NET Core (native IIS) Module • Hooks into IIS pipeline • Improved Performance
  • 38. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • Default UI implemented in a library • Available as NuGet package • Enable via Startup class
  • 39. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • Compliance for EU General Data Protection Regulation reqts • Request user consent for info
  • 40. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • Mix authentication schemes • e.g. Bearer tokens, cookie auth
  • 41. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • Compiled during build process • Improved startup performance
  • 42. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • Razor UI as class library • Share across projects • Share as Nuget package
  • 43. ASP.NET Core 2.1: What’s New? http://www.talkingdotnet.com/quick-summary-whats-new-asp-net-core-2-1/ • Improved end-to-end testing • e.g. routing, filters, controllers, actions, views and pages
  • 44. How about Entity Framework? DB ORM Entities in Code Core ) 4.6+ 4.6+
  • 48. File  New Project  Web • ASP .NET Core Web App • Web App (4.x)
  • 49. Select a Template 1.0 , 1.1, 2.0 Templates • Empty • Web API • Web App (Razor) • Web App (MVC) • Angular • React.js • React.js & Redux Other settings: • Authentication • Docker Support
  • 50. VS 2017 Preview with ASP.NET Core 2.1 https://www.visualstudio.com/vs/preview/
  • 51. .NET Core SDK 2.1.300-preview1 https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300-preview1
  • 52. Select a Template (VS 2017 Preview) Also includes: ASP .NET Core 2.1
  • 53. ASP.NET Core Runtime Extension on Azure https://blogs.msdn.microsoft.com/webdev/2018/02/27/asp-net-core-2-1-0-preview1-using-asp-net-core-previews-on-azure-app-service/
  • 54. Visual Studio Code Download https://code.visualstudio.com
  • 58. .csproj project file 2.1 https://github.com/aspnet/Announcements/issues/287
  • 60. Choose Profile While Debugging
  • 62. DEMO
  • 63. Migrating from MVC to MVC Core https://docs.microsoft.com/en-us/aspnet/core/migration/mvc
  • 64. dotnet/cli on GitHub This repo contains the .NET Core command- line (CLI) tools, used for building .NET Core apps and libraries. GitHub: https://github.com/dotnet/cli
  • 65. .NET Core 2.x CLI Commands https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x >dotnet --version >dotnet --info >dotnet new <TEMPLATE> --auth <AUTH_TYPE> -o <OUTPUT_DIR> >dotnet new console -o MyConsoleApp >dotnet new mvc --auth Individual -o MyMvcWebApp >dotnet restore >dotnet build >dotnet run <TEMPLATE> = web | mvc | razor | angular | react | webapi <AUTH_TYPE> for mvc,razor = None | Individual | SingleOrg | Windows
  • 66. Azure CLI Commands https://docs.microsoft.com/en-us/azure/app-service/scripts/app-service-cli-deploy-github >az login >az group create -l <REGION> -n <RSG> >az appservice plan create -g <RSG> -n <ASP> --sku <PLAN> (e.g. F1) >az webapp create -g <RSG> -p <ASP> -n <APP> >git init >git add . >git commit -m "<COMMIT MESSAGE>“ >az webapp deployment user set --user-name <USER> >az webapp deployment source config-local-git -g <RSG> -n <APP> --out tsv >git remote add azure <GIT URL> >git push azure master RESULT  http://<APP>.azurewebsites.net GIT URL  https://<USER>@<APP>.scm.azurewebsites.net/<APP>.git
  • 67. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio & VS Code References + Wrap-up
  • 69. Blog Sources Scott Hanselman’s Blog: https://www.hanselman.com/blog/ .NET Web Dev Blog: https://blogs.msdn.microsoft.com/webdev/
  • 70. Visual Studio 2017 Launch Videos https://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-2017-Launch?sort=viewed&direction=asc
  • 71. Build 2017: ASP .NET Core 2.0 https://channel9.msdn.com/Events/Build/2017/b8048
  • 72. .NET Core 2.1 Roadmap PT.1 https://channel9.msdn.com/Shows/On-NET/NET-Core-21-Roadmap-PT1
  • 73. .NET Core 2.1 Roadmap PT.2 https://channel9.msdn.com/Shows/On-NET/NET-Core-21-Roadmap-PT2
  • 74. Build Conference 2018 http://build.microsoft.com
  • 75. Jeff Fritz on YouTube https://www.youtube.com/watch?v=Oriqg6qC4hc
  • 76. Other Video Sources MSDN Channel 9: https://channel9.msdn.com .NET Conf: http://www.dotnetconf.net
  • 77. Docs + Tutorials Tutorials: https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/ Docs: https://blogs.msdn.microsoft.com/webdev/2017/02/07/asp-net-documentation-now-on-docs-microsoft-com/
  • 78. ASP.NET Core 2.0 Release https://blogs.msdn.microsoft.com/webdev/2017/08/14/announcing-asp-net-core-2-0/
  • 79. ASP.NET Core 2.1 Roadmap https://blogs.msdn.microsoft.com/webdev/2018/02/02/asp-net-core-2-1-roadmap/
  • 83. References • ASP .NET: http://www.asp.net • .NET Core: https://www.microsoft.com/net • .NET Web Dev Blog: https://blogs.msdn.microsoft.com/webdev • Scott Hanselman’s Blog: https://www.hanselman.com/blog • .NET Conf: http://www.dotnetconf.net • MSDN Channel 9: https://channel9.msdn.com • Tutorials: https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app • C# 7: https://docs.microsoft.com/en-us/dotnet/articles/csharp/csharp-7 • ASP.NET Core Roadmap: https://github.com/aspnet/Home/wiki/Roadmap • .NET Core Roadmap: https://github.com/dotnet/core/blob/master/roadmap.md
  • 84. Other Resources • New Razor Pages: http://www.hishambinateya.com/welcome-razor-pages • Intro to Razor: https://docs.microsoft.com/en-us/aspnet/core/mvc/razor-pages • Live Unit Testing: https://blogs.msdn.microsoft.com/visualstudio/2016/11/18/live- unit-testing-visual-studio-2017-rc • Migrating from MVC to MVC Core: https://docs.microsoft.com/en- us/aspnet/core/migration/mvc • Visual Studio Code: https://code.visualstudio.com • dotnet/cli on GitHub: https://github.com/dotnet/cli
  • 85. Q & A
  • 86. Agenda Introduction > .NET (Framework & Core) > ASP.NET Core > Visual Studio & VS Code References + Wrap-up
  • 87. Email: shchowd@microsoft.com  Twitter: @shahedC

Notas do Editor

  1. Agenda
  2. Introduction
  3. Agenda
  4. Variables, Operators & Loops
  5. ASP .NET 5.0
  6. ASP .NET 5.0
  7. ASP .NET 5.0
  8. Agenda
  9. Introduction
  10. Additional Topics
  11. Agenda
  12. Contact Microsoft email: shchowd@microsoft.com Personal Twitter: @shahedC Dev Blog: WakeUpAndCode.com