Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Â
Getting Started with ASP.NET Core 1.0 (formerly ASP.NET 5)
1.
2. 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.
3.
4.
5. 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
6. 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
7. 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â
8. 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
9.
10. 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
11. 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
12. 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
13. 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
14. Modern Web â Cross Platform
- Windows
- Mac
- Linux
Cross-Platform
Open Source
with Contributions
OSS
- ApacheLicense,
Version2.0
- Availableon Github
- Pull Requests
17. 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
22. 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)).
23. .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
24. Create Project
> File
> New Project
> ASP.NET Web Application
- ApplicationInsights Integration
28. 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
29. 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âŠ
35. View Components
- Finallya more robust componentmodel for MVC!
- Similarto partialviews but with more power (ie. complexbusinesslogic)
36. Tag Helpers
- HTML helpers expressed as
HTML tags
- Designer friendly
- Easier to customize with
additional attributes
- Works seamlessly with any
HTML editor
39. 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