building modern web apps using asp.net 5

11
Building Modern Web Apps Using ASP. Net 5 Notes: If you experience audio issues during the webinar, you can dial in through telephone details provided to you in your registration confirmation email. Please feel free to post questions in the questions dialog and we will try to answer as many as we can at the end. Recording of this session will be shared in next 24-48 hours. You can also write to us at [email protected] for any clarifications or information.

Upload: winwire-technologies-inc

Post on 14-Apr-2017

276 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Building Modern Web Apps Using ASP.NET 5

Building Modern Web Apps Using

ASP. Net 5Notes: If you experience audio issues during the webinar, you can dial in through telephone details provided

to you in your registration confirmation email. Please feel free to post questions in the questions dialog and we will try to answer as many as we can

at the end. Recording of this session will be shared in next 24-48 hours. You can also write to us at [email protected] for any clarifications or information.

Page 2: Building Modern Web Apps Using ASP.NET 5

Session Speakers

Amit Dubay

Director – Cloud & MobilityWinWire TechnologiesMicrosoft Azure Certified Developer

Page 3: Building Modern Web Apps Using ASP.NET 5

Agenda

ASP.Net 5 – Project Structure

DNX Overview

ASP.Net 5 Improvements

Introduction to ASP.Net 5

Questions

12345

Page 4: Building Modern Web Apps Using ASP.NET 5

Introduction to ASP.Net 5

ASP.NET 5 is a new open-source and cross-platform framework for building modern cloud-based Web applications using .NET

Page 5: Building Modern Web Apps Using ASP.NET 5

ASP.Net 5 Improvements

New light-weight and modular HTTP request pipeline

Ability to host on IIS or self-host in your own process

Built on .NET Core, which supports true side-by-side app versioning

Ships entirely as NuGet packages

Integrated support for creating and using NuGet packages

Single aligned web stack for Web UI and Web APIs

Cloud-ready environment-based configuration

Built-in support for dependency injection

Build and run cross-platform ASP.NET apps on Windows, Mac and Linux

Open source and community focused

Page 6: Building Modern Web Apps Using ASP.NET 5

DNX Overview

The .NET Execution Environment (DNX) is a software development kit (SDK) and runtime environment that has everything you need to build and run .NET applications for Windows, Mac and Linux

Cross-platform .NET development

• DNX provides a consistent development and execution environment across multiple platforms (Windows, Mac and Linux) and across different .NET flavors (.NET Framework, .NET Core and Mono)

Build for .NET Core

• DNX dramatically simplifies the work needed to develop cross-platform applications using .NET Core

Package ecosystem

• Package managers have completely changed the face of modern software development and DNX makes it easy to create and consume packages

Open Source Friendly

• DNX makes it easy to work with open source projects

Page 7: Building Modern Web Apps Using ASP.NET 5

ASP.Net 5 – Project Structure

● Global.json file● The “src” folder● Special “wwwroot” folder● Dependencies section● Several new files such as bower.json,

appsettings.json, gulpfile.js, package.json, project.json, and Startup.cs

● Files global.asax, packages.config, and web.config are gone

Page 8: Building Modern Web Apps Using ASP.NET 5

Application Startup

Page 9: Building Modern Web Apps Using ASP.NET 5

Configuration ServicesThe ConfigureServices method is used to specify which services are available to the app. The default template uses helper methods to add a variety of services used for EF, Identity, and MVC

Page 10: Building Modern Web Apps Using ASP.NET 5

Configuration Method● The Configure method will be

called by the runtime after ConfigureServices

● In the sample project, Configure is used to wire up a console logger, add several useful features for the development environment, add support for static files, Identity, and MVC routing

Page 11: Building Modern Web Apps Using ASP.NET 5

Q & ANext WebinarTopic : Getting Started with Visual Studio 2015 and C# 6.0 When: Jan 20th at 9am PT

http://www.winwire.com/blog-winsights/

www.twitter.com/winwire

[email protected]

www.winwire.com