SlideShare a Scribd company logo
ASP.NET CORE QUICK START
ERIK NOREN
Solutions Architect
Software Developer 15+ Years
Software Tinkerer Since Commodore 64
Hardware Hobbyist
Twitter: @ErikNoren
GitHub: ErikNoren
ASP.NET CORE QUICK START
.NET Core or .NET Framework
ASP.NET Core on…
.NET FRAMEWORK
• Easy to Add Project
References
• Windows Only
• Create Libraries as Class
Library
.NET CORE
• Primarily Leverage NuGet
Packages
• Cross Platform
• Start with Portable Class Library
then convert to .NET Standard
ASP.NET CORE
• Developed the same regardless if you choose .NET Core or .NET
Framework
• .NET Core and .NET Framework don’t have feature parity so some
differences there
• Is a Console Application with a built-in web server (Kestrel)
• Integrates Dependency Injection in a smart way and takes advantage
of knowing DI is available from the start.
• Heavy use of NuGet packages and separation of abstractions from
implementation make DI into class libraries easy.
ASP.NET CORE QUICK START
Configuration
CONFIGURATION
• Multiple Providers for Different Sources
• JSON Files, Environment Variables, INI Files, XML Files, Command Line
Switches
• Configuration Values Stored in Single IConfiguration Object
• Configuration Sources Converted to Key Value Pairs
• Key Names are Flattened Hierarchy Using Colon Delimiters
• Key
• Key:SubKey:AnotherSubKey
• Bind Configuration to POCO Object for Easy Use
CONFIGURATION
SOURCE
{
“Version”: “1.0.preview1”,
“Build” : {
“Target”: “Release”,
“Date”: “2017-02-16”
}
}
ICONFIGURATION
Version = 1.0.preview1
Build:Target = Release
Build:Date = 2017-02-16
CONFIGURATION
• Added to DI Container as Singleton
• IOptions<MySettings>
• IOptionsSnapshot<MySettings>
• IOptionsMonitor<MySettings>
• services.Configure<MySettings>(…)
• Settings at time of application start
• Settings as they currently are*
• Settings as they currently are**
*Provider must support ReloadOnChange. Available in version 1.1.0
**Provider must support ReloadOnChange. Has change event you can hook to
detect changes.
ASP.NET CORE QUICK START
Configuration Demo
ASP.NET CORE QUICK START
Logging
LOGGING
• ILoggerFactory can be injected to set up and configure logging
• ILogger<T> can be injected in constructors to log messages
• ILogger comes from Microsoft.Extensions.Logging.Abstractions
• Easy to include into other projects using the interface
• Dependency Injection will inject the implementation from the application
• Avoid circular references, shared classes, etc.
• Change logging provider in container with no application code changes
ASP.NET CORE QUICK START
Logging Demo
ASP.NET CORE QUICK START
Class Library References
Class Library References
• Separating logic into separate projects is common
• .NET Framework projects continue to work as they always have
• .NET Core requires Portable Class Libraries targeting .NET Standard
• NuGet Packages can contain both .NET Framework and .NET Core libs
• To see if a NuGet package is compatible, look at its dependencies
• .NET Framework 4x will work in ASP.NET Core using .NET Framework
• .NET Standard 1.x will work in ASP.NET Core using .NET Core
ASP.NET CORE QUICK START
Class Library References Demo
QUESTIONS?
Erik Noren
Solutions Architect
Software Developer 15+ Years
Software Tinkerer Since Commodore 64
Hardware Hobbyist
Twitter: @ErikNoren
GitHub: ErikNoren
RESOURCES
• Demo Code Samples - https://github.com/ErikNoren/AspNetCoreDemos
• ASP.NET Core – https://www.asp.net/core
• ASP.NET Core Source – https://github.com/aspnet/home
• Microsoft Docs – https://docs.microsoft.com/
• .NET Standard – https://github.com/dotnet/standard
• .NET Core Roadmap – https://github.com/dotnet/core/blob/master/roadmap.md
• .NET Foundation – https://dotnetfoundation.org/

More Related Content

PPTX
ASP.NET Core Demos Part 2
PPTX
Validating latest changes with XCI
PPTX
How to contribute to an open source project and don’t die during the Code Rev...
PPTX
.NET Standard - Introduction
PPTX
Apex world 2018 continuously delivering APEX
PDF
Take a Look at Akka+Java (English version)
PPTX
ASP.NET vNext
PPTX
Reactive Web Development with Spring Boot 2
ASP.NET Core Demos Part 2
Validating latest changes with XCI
How to contribute to an open source project and don’t die during the Code Rev...
.NET Standard - Introduction
Apex world 2018 continuously delivering APEX
Take a Look at Akka+Java (English version)
ASP.NET vNext
Reactive Web Development with Spring Boot 2

What's hot (20)

PPTX
ONAP on Vagrant
PDF
Onion Architecture and the Blog
PPTX
Continuous integration
PDF
Threading Made Easy! A Busy Developer’s Guide to Kotlin Coroutines
PPTX
Entity Framework 7: What's New?
PPTX
Entity Framework Core 1.0
PPTX
How to setup a development environment for ONAP
PPTX
Serverless meetup - OpenWhisk overview and architecture
PDF
Javantura v4 - FreeMarker in Spring web - Marin Kalapać
PPTX
Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Ne...
PDF
Rethinking the debugger
PDF
Voxxed Athens 2018 - Java EE is dead Long live jakarta EE!
PPTX
UWP apps development - Part 2
PPTX
Introducing .NET Core Open Source
PPTX
Migration from ASP.NET MVC to ASP.NET Core
PPTX
Bccon use notes objects in memory and other useful
PPT
Brightcove presentation on Automated Testing
PPTX
4. introduction to Asp.Net MVC - Part II
PPTX
Using PowerShell for SharePoint 2013
ONAP on Vagrant
Onion Architecture and the Blog
Continuous integration
Threading Made Easy! A Busy Developer’s Guide to Kotlin Coroutines
Entity Framework 7: What's New?
Entity Framework Core 1.0
How to setup a development environment for ONAP
Serverless meetup - OpenWhisk overview and architecture
Javantura v4 - FreeMarker in Spring web - Marin Kalapać
Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Ne...
Rethinking the debugger
Voxxed Athens 2018 - Java EE is dead Long live jakarta EE!
UWP apps development - Part 2
Introducing .NET Core Open Source
Migration from ASP.NET MVC to ASP.NET Core
Bccon use notes objects in memory and other useful
Brightcove presentation on Automated Testing
4. introduction to Asp.Net MVC - Part II
Using PowerShell for SharePoint 2013
Ad

Viewers also liked (13)

PPTX
Sapeintia amoris 3 03
PDF
5 hist 1ºbim
PDF
IBV infectious bronchitis virus Kurdistan
PPTX
Presentasi ilmu ( irma)
PPTX
Restructuring Protected Industries
PPTX
PROMOSI EKSKUL BOLA VOLI
PPTX
Raise your profile, increase your influence
PPTX
Metacognición
PDF
非(エンジニア|プログラマ)でも知っておきたい正規表現【第5回 WordBench山口 セッション2】
PPTX
ASP.NET Core
PDF
Web × プログラミング ~JavaScript編~(2017/2/16)
PPTX
Startup Seminars - Investment Readiness Overview
PPTX
Bootstrap Business Seminar 8: Making sense of the numbers
Sapeintia amoris 3 03
5 hist 1ºbim
IBV infectious bronchitis virus Kurdistan
Presentasi ilmu ( irma)
Restructuring Protected Industries
PROMOSI EKSKUL BOLA VOLI
Raise your profile, increase your influence
Metacognición
非(エンジニア|プログラマ)でも知っておきたい正規表現【第5回 WordBench山口 セッション2】
ASP.NET Core
Web × プログラミング ~JavaScript編~(2017/2/16)
Startup Seminars - Investment Readiness Overview
Bootstrap Business Seminar 8: Making sense of the numbers
Ad

Similar to ASP.NET Core Demos (20)

PPTX
.NET Core: a new .NET Platform
PDF
.NET Core, ASP.NET Core Course, Session 1
PDF
Asp.Net Core MVC , Razor page , Entity Framework Core
PPTX
Quick Interview Preparation Dot Net Core
PPTX
ASP.NET 5 - Microsoft's Web development platform reimagined
PPTX
Unboxing ASP.NET Core
PDF
Introduction to dot net
PPTX
CT Software Developers Meetup: Using Docker and Vagrant Within A GitHub Pull ...
PPTX
.Net Standard 2.0
PPTX
Top 10 dev ops tools (1)
PDF
Introduction to Spring Framework
PPTX
ASP.NET Core: The best of the new bits
PPTX
Agile sites2
PPTX
Build software like a bag of marbles, not a castle of LEGO®
PDF
OUG Ireland Meet-up 12th January
PDF
From XPages Hero to OSGi Guru: Taking the Scary out of Building Extension Lib...
PDF
Building scalbale cloud native apps with .NET 8
PPTX
Modern Web-site Development Pipeline
PPTX
Whats new in .net for 2019
PPTX
Whats new in Azure Functions and .NET 6.pptx
.NET Core: a new .NET Platform
.NET Core, ASP.NET Core Course, Session 1
Asp.Net Core MVC , Razor page , Entity Framework Core
Quick Interview Preparation Dot Net Core
ASP.NET 5 - Microsoft's Web development platform reimagined
Unboxing ASP.NET Core
Introduction to dot net
CT Software Developers Meetup: Using Docker and Vagrant Within A GitHub Pull ...
.Net Standard 2.0
Top 10 dev ops tools (1)
Introduction to Spring Framework
ASP.NET Core: The best of the new bits
Agile sites2
Build software like a bag of marbles, not a castle of LEGO®
OUG Ireland Meet-up 12th January
From XPages Hero to OSGi Guru: Taking the Scary out of Building Extension Lib...
Building scalbale cloud native apps with .NET 8
Modern Web-site Development Pipeline
Whats new in .net for 2019
Whats new in Azure Functions and .NET 6.pptx

Recently uploaded (20)

PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
System and Network Administration Chapter 2
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
AI in Product Development-omnex systems
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
medical staffing services at VALiNTRY
PDF
Digital Strategies for Manufacturing Companies
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
2025 Textile ERP Trends: SAP, Odoo & Oracle
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Understanding Forklifts - TECH EHS Solution
Which alternative to Crystal Reports is best for small or large businesses.pdf
Odoo Companies in India – Driving Business Transformation.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
System and Network Administration Chapter 2
Online Work Permit System for Fast Permit Processing
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Operating system designcfffgfgggggggvggggggggg
ManageIQ - Sprint 268 Review - Slide Deck
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
AI in Product Development-omnex systems
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
medical staffing services at VALiNTRY
Digital Strategies for Manufacturing Companies
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx

ASP.NET Core Demos

  • 2. ERIK NOREN Solutions Architect Software Developer 15+ Years Software Tinkerer Since Commodore 64 Hardware Hobbyist Twitter: @ErikNoren GitHub: ErikNoren
  • 3. ASP.NET CORE QUICK START .NET Core or .NET Framework
  • 4. ASP.NET Core on… .NET FRAMEWORK • Easy to Add Project References • Windows Only • Create Libraries as Class Library .NET CORE • Primarily Leverage NuGet Packages • Cross Platform • Start with Portable Class Library then convert to .NET Standard
  • 5. ASP.NET CORE • Developed the same regardless if you choose .NET Core or .NET Framework • .NET Core and .NET Framework don’t have feature parity so some differences there • Is a Console Application with a built-in web server (Kestrel) • Integrates Dependency Injection in a smart way and takes advantage of knowing DI is available from the start. • Heavy use of NuGet packages and separation of abstractions from implementation make DI into class libraries easy.
  • 6. ASP.NET CORE QUICK START Configuration
  • 7. CONFIGURATION • Multiple Providers for Different Sources • JSON Files, Environment Variables, INI Files, XML Files, Command Line Switches • Configuration Values Stored in Single IConfiguration Object • Configuration Sources Converted to Key Value Pairs • Key Names are Flattened Hierarchy Using Colon Delimiters • Key • Key:SubKey:AnotherSubKey • Bind Configuration to POCO Object for Easy Use
  • 8. CONFIGURATION SOURCE { “Version”: “1.0.preview1”, “Build” : { “Target”: “Release”, “Date”: “2017-02-16” } } ICONFIGURATION Version = 1.0.preview1 Build:Target = Release Build:Date = 2017-02-16
  • 9. CONFIGURATION • Added to DI Container as Singleton • IOptions<MySettings> • IOptionsSnapshot<MySettings> • IOptionsMonitor<MySettings> • services.Configure<MySettings>(…) • Settings at time of application start • Settings as they currently are* • Settings as they currently are** *Provider must support ReloadOnChange. Available in version 1.1.0 **Provider must support ReloadOnChange. Has change event you can hook to detect changes.
  • 10. ASP.NET CORE QUICK START Configuration Demo
  • 11. ASP.NET CORE QUICK START Logging
  • 12. LOGGING • ILoggerFactory can be injected to set up and configure logging • ILogger<T> can be injected in constructors to log messages • ILogger comes from Microsoft.Extensions.Logging.Abstractions • Easy to include into other projects using the interface • Dependency Injection will inject the implementation from the application • Avoid circular references, shared classes, etc. • Change logging provider in container with no application code changes
  • 13. ASP.NET CORE QUICK START Logging Demo
  • 14. ASP.NET CORE QUICK START Class Library References
  • 15. Class Library References • Separating logic into separate projects is common • .NET Framework projects continue to work as they always have • .NET Core requires Portable Class Libraries targeting .NET Standard • NuGet Packages can contain both .NET Framework and .NET Core libs • To see if a NuGet package is compatible, look at its dependencies • .NET Framework 4x will work in ASP.NET Core using .NET Framework • .NET Standard 1.x will work in ASP.NET Core using .NET Core
  • 16. ASP.NET CORE QUICK START Class Library References Demo
  • 17. QUESTIONS? Erik Noren Solutions Architect Software Developer 15+ Years Software Tinkerer Since Commodore 64 Hardware Hobbyist Twitter: @ErikNoren GitHub: ErikNoren
  • 18. RESOURCES • Demo Code Samples - https://github.com/ErikNoren/AspNetCoreDemos • ASP.NET Core – https://www.asp.net/core • ASP.NET Core Source – https://github.com/aspnet/home • Microsoft Docs – https://docs.microsoft.com/ • .NET Standard – https://github.com/dotnet/standard • .NET Core Roadmap – https://github.com/dotnet/core/blob/master/roadmap.md • .NET Foundation – https://dotnetfoundation.org/