Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Shaun Walker
- Microsoft MVP (11 years), ASP Insider
- .NET Foundation Advisory Council
- Creator of DotNetNuke
shaun.walk...
History of Microsoft’s Web Frameworks
1996 – Active Server Pages (ASP)
2002 – ASP.NET
2008 – ASP.NET MVC
2010 – ASP.NET We...
Characteristics of the Modern Web
Web Frameworks:
- Responsive Design
- Client Frameworks
- Cloud Ready
- Cross Platform
-...
Open Web Server Interface for .NET
- Open Sourceproject ( http://owin.org/)
- Specificationpublishedin 2012
- Standardized...
History of ASP.NET Core 1.0
2012– Open WebServerInterfacefor .NET (OWIN)
2012– “ProjectK”
2013– Katana(Microsoftimplementa...
ASP.NET Core 1.0 Key Values
Choose your Editors
and Tools
Open Source
with Contributions
Cross-PlatformOSS
Seamless transi...
Modern Web - Productive
Faster Development CycleUnified Experience1
- MVC & Web API
unified( Web Pages
coming)
- Dependenc...
Modern Web – Fast
- Fasterstartuptimes
- Lowermemory/
higherdensity(> 90%
reduction)
- Use a raw socket,
frameworkor both
...
Modern Web - Flexible
- Cloudready
configuration,session,
cache
- No codechangesfor
Cloud
- Diagnostics,remote
tracingand ...
Modern Web – Cross Platform
- Windows
- Mac
- Linux
Cross-Platform
Open Source
with Contributions
OSS
- ApacheLicense,
Ver...
ASP.NET 4.6 and ASP.NET Core 1.0
ASP.NET 4.6 and ASP.NET Core 1.0
.NET Framework 4.6 .NET Core 1.0
Full .NET Framework for any scenario and
library support...
https://github.com/aspnet/home/wiki/roadmap
Milestone Release Date
Beta6 Jul 27, 2015
Beta7 Sep 2, 2015
Beta8 Oct 15, 2015...
Performance Benchmark
ASP.NETCore 1.0 exceeded1.15 millionRequestsper Secondand 12.6Gbps of
Throughput– 2300% greaterthan ...
https://get.asp.net
Installing ASP.NET Core 1.0 On Windows
1. InstallVisualStudio 2015
- Be sure to specifythat you want to includethe .
2. In...
.NET Execution Environment (DNX)
- SDK and runtimeenvironmentfor creating.NET applicationson Windows, Mac, and
Linux.
- Pr...
Create Project
> File
> New Project
> ASP.NET Web Application
- ApplicationInsights Integration
Project Templates
> ASP.NET 5 Templates
> Web Application
- AuthenticationOptions
- Microsoft Azure Options
Demo
Getting Started with ASP.NET Core 1.0
Project Structure
/References- server-sidereferences
/wwwroot - web app root and location of staticresources
/Dependencies...
Middleware
- Componentsassembledinto an
applicationpipeline to handle requests
and responses.
- Each componentcan pass the...
Dependency Injection (DI)
- First-classcitizen
- DefaultInversionof Control(IoC) containerprovided (canbe replaced)
- Decl...
Adding MVC
Diagnostics
- get rich diagnosticsby using the Microsoft.AspNet.Diagnosticspackageand
app.UseDeveloperExceptionPage();in S...
Routing
- Familiarconvention-basedsyntax
- Consistentfor both MVC and WebAPI
- Support for Filtersand Attributes(withconst...
Views
- Now supportDependencyInjectionwith @inject
- _ViewImports.cshtmlfor registeringnamespacesto be used in your Views
View Components
- Finallya more robust componentmodel for MVC!
- Similarto partialviews but with more power (ie. complexbu...
Tag Helpers
- HTML helpers expressed as
HTML tags
- Designer friendly
- Easier to customize with
additional attributes
- W...
- Input Tag:
- Generates:
- From:
Tag Helpers
Tag Helpers
- Create your own custom Tag Helpers!
Entity Framework Core 1.0
- Formerly named Entity Framework 7
- Rewritten from scratch
- Common classes, patterns and work...
Demo
ASP.NET Core 1.0 Features
ASP.NET Core 1.0 Resources
http://www.asp.net/vnext
http://get.asp.net
http://docs.asp.net
https://live.asp.net/
Questions?
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)
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)
Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)
Upcoming SlideShare
Loading in …5
×

Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)

1,394 views

Published on

The evolution of ASP.Net Core 1.0 and the amazing new features available.

Published in: Technology
  • Be the first to comment

Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)

  1. 1. Shaun Walker - Microsoft MVP (11 years), ASP Insider - .NET Foundation Advisory Council - Creator of DotNetNuke shaun.walker@arrowdesigns.com @sbwalker About Me: Based in Abbotsford, BC, Canada. Proud parent. I love ice hockey, music, and technology.
  2. 2. History of Microsoft’s Web Frameworks 1996 – Active Server Pages (ASP) 2002 – ASP.NET 2008 – ASP.NET MVC 2010 – ASP.NET Web Pages 2012 – ASP.NET Web API, SignalR
  3. 3. Characteristics of the Modern Web Web Frameworks: - Responsive Design - Client Frameworks - Cloud Ready - Cross Platform - Open Source Web Tooling: - Standards Based - Develop in Browser - Open Tooling - Grunt / Bower
  4. 4. Open Web Server Interface for .NET - Open Sourceproject ( http://owin.org/) - Specificationpublishedin 2012 - Standardizedinterfacebetweenweb serversand web applications - In practicalterms,a decouplingof ASP.NETfrom IIS - Providesthe flexibilityto run other OWIN-enabledframeworkson IIS - Providesthe flexibilityto run Microsoft’sweb frameworksin other environments - Introducedthe conceptof “Middleware”
  5. 5. History of ASP.NET Core 1.0 2012– Open WebServerInterfacefor .NET (OWIN) 2012– “ProjectK” 2013– Katana(Microsoftimplementationof OWIN) 2014– ASP.NETvNext 2015– ASP.NET5 2016– ASP.NETCore 1.0* *Note: full renameto ASP.NETCore 1.0 will be completedin RC2
  6. 6. ASP.NET Core 1.0 Key Values Choose your Editors and Tools Open Source with Contributions Cross-PlatformOSS Seamless transition from on-premises to cloud Faster Development CycleTotally Modular High Performance Unified Experience1
  7. 7. Modern Web - Productive Faster Development CycleUnified Experience1 - MVC & Web API unified( Web Pages coming) - DependencyInjection - Tracing& Diagnostics - Featuresshippedas packagesvia Nuget - Frameworkshipsas partof your application - Side-by-side frameworkversioning - Servicepackcontrol
  8. 8. Modern Web – Fast - Fasterstartuptimes - Lowermemory/ higherdensity(> 90% reduction) - Use a raw socket, frameworkor both - IIS or self-hosted - New HTTP request pipelineutilizing Middleware - Opt into onlydesired features High Performance Totally Modular
  9. 9. Modern Web - Flexible - Cloudready configuration,session, cache - No codechangesfor Cloud - Diagnostics,remote tracingand debugging Seamless transition from on-premises to cloud - Visual Studio,Text, Cloudeditors - No editors(command line) Choose your Editors and Tools
  10. 10. Modern Web – Cross Platform - Windows - Mac - Linux Cross-Platform Open Source with Contributions OSS - ApacheLicense, Version2.0 - Availableon Github - Pull Requests
  11. 11. ASP.NET 4.6 and ASP.NET Core 1.0
  12. 12. ASP.NET 4.6 and ASP.NET Core 1.0 .NET Framework 4.6 .NET Core 1.0 Full .NET Framework for any scenario and library support on Windows Modular libraries & runtime optimized for server and cloud workloads
  13. 13. https://github.com/aspnet/home/wiki/roadmap Milestone Release Date Beta6 Jul 27, 2015 Beta7 Sep 2, 2015 Beta8 Oct 15, 2015 RC1 Nov 18, 2015 RC2 April 2016?? RTM Summer/Fall 2016?? Release Schedule
  14. 14. Performance Benchmark ASP.NETCore 1.0 exceeded1.15 millionRequestsper Secondand 12.6Gbps of Throughput– 2300% greaterthan ASP.NET4.6!!
  15. 15. https://get.asp.net
  16. 16. Installing ASP.NET Core 1.0 On Windows 1. InstallVisualStudio 2015 - Be sure to specifythat you want to includethe . 2. InstallASP.NET5 - This will installthe latestASP.NET5 runtimeand tooling. 3. Enablethe ASP.NET5 command-linetools. - Open a command-promptand run: dnvmupgrade (thiswill enable the default.NET ExecutionEnvironment(DNX)).
  17. 17. .NET Execution Environment (DNX) - SDK and runtimeenvironmentfor creating.NET applicationson Windows, Mac, and Linux. - Provides a host process,CLR hosting logic and managedentry point discovery and can be interactedwith through a commandline tool. - Distributedwith your application
  18. 18. Create Project > File > New Project > ASP.NET Web Application - ApplicationInsights Integration
  19. 19. Project Templates > ASP.NET 5 Templates > Web Application - AuthenticationOptions - Microsoft Azure Options
  20. 20. Demo Getting Started with ASP.NET Core 1.0
  21. 21. Project Structure /References- server-sidereferences /wwwroot - web app root and location of staticresources /Dependencies- client-side dependencies(Bower/NPM) /Migrations- Entity Frameworkmigrations appsettings.json- configurationsettings project.json- server side dependencies(Nuget) Startup.cs- applicationentry point, configurationof request pipeline and services
  22. 22. Middleware - Componentsassembledinto an applicationpipeline to handle requests and responses. - Each componentcan pass the request on to the next componentor terminate - Componentshave the opportunityto performoperationsbefore and afterthe next componentexecutes - Ordering of componentsis important - Authentication,staticfiles, MVC, etc…
  23. 23. Dependency Injection (DI) - First-classcitizen - DefaultInversionof Control(IoC) containerprovided (canbe replaced) - Declareyour Servicesin Startup.cs
  24. 24. Adding MVC
  25. 25. Diagnostics - get rich diagnosticsby using the Microsoft.AspNet.Diagnosticspackageand app.UseDeveloperExceptionPage();in Startup.cs
  26. 26. Routing - Familiarconvention-basedsyntax - Consistentfor both MVC and WebAPI - Support for Filtersand Attributes(withconstructorinjection)
  27. 27. Views - Now supportDependencyInjectionwith @inject - _ViewImports.cshtmlfor registeringnamespacesto be used in your Views
  28. 28. View Components - Finallya more robust componentmodel for MVC! - Similarto partialviews but with more power (ie. complexbusinesslogic)
  29. 29. Tag Helpers - HTML helpers expressed as HTML tags - Designer friendly - Easier to customize with additional attributes - Works seamlessly with any HTML editor
  30. 30. - Input Tag: - Generates: - From: Tag Helpers
  31. 31. Tag Helpers - Create your own custom Tag Helpers!
  32. 32. Entity Framework Core 1.0 - Formerly named Entity Framework 7 - Rewritten from scratch - Common classes, patterns and workflows remain intact - Code First workflow only ( no designer-based EDMX model ) - Smaller Footprint - Cross Platform
  33. 33. Demo ASP.NET Core 1.0 Features
  34. 34. ASP.NET Core 1.0 Resources http://www.asp.net/vnext http://get.asp.net http://docs.asp.net https://live.asp.net/
  35. 35. Questions?

×