Top Banner
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
12

Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

Aug 17, 2015

Download

Technology

Renato Haddad
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

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

May 14 – 15, 2015

2015 Microsoft MVP Virtual Conference

Page 2: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

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.

Page 3: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

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

Plataformas de Execução

Windows Mac OS XLinux

Page 4: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

.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

Page 5: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

O que é Open Source?

Page 6: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

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.

Page 7: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

Command Prompt

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

Page 8: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

Arquivos de Configurações

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

Page 9: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

Injeção de Dependência

Nos arquivos de configurações

Page 10: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

Injeção de Dependência

Via Razor

Page 11: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

Injeção de Dependência

Por projetos e framework (veja “net451”)

Page 12: Palestra de Asp.Net 5 no TDC floripa e DotnetFloripa

© 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.