12
Primeiros Passos no ASP.NET 5 Renato Haddad www.renatohaddad.com @rehaddad May 14, 2015 May 14 – 15, 2015 2015 Microsof t MVP Virtual Conferen ce

Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

Embed Size (px)

Citation preview

Primeiros Passos no ASP.NET 5Renato Haddadwww.renatohaddad.com @rehaddadMay 14, 2015

May 14 – 15, 2015

2015 Microsoft MVP Virtual Conference

ASP.NET 5 e Modern Web

Vários editores e ferramentas

Contribuições Open Source

Cross-PlatformOSS

Transição suave de local para nuvem

Ciclo Desenvolvimento Rápido

Totalmente Modular

ASP.NET 5 é um novo framework open-source e cross-platform para construir modernas aplicações Web baseadas na nuvem usando .NET.

ASP.NET 5 requer .NET Execution Environment (DNX)

Plataformas de Execução

Windows Mac OS XLinux

.NET Version Manager (DNVM)

Plataformas de Execução

powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}“

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh

O que é Open Source?

Servidores IIS ou self-hosting

No Windows você pode usar o IIS ou outro que usa o servidor WebListener, o qual é baseado no HTTP.sys.

Para ambientes não-Windows usando cross-platform, use o servidor web Kestrel.

Command Prompt

• DNVM (.NET Version Manager)• DNX (.NET Execution Environment)• DNU (.NET Development Utility)

Arquivos de Configurações

• project.json• config.json• bower.json• package.json

Injeção de Dependência

Nos arquivos de configurações

Injeção de Dependência

Via Razor

Injeção de Dependência

Por projetos e framework (veja “net451”)

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted

to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.