Post on 16-Apr-2017
ASP.NET 5 en Linux y Mac OS X: Herramientas e integracion
Luis Ruiz
Luis Ruiz
Software Developer at Plain Conceptslruiz@plainconcepts.com@luisruizpavonhttp://github.com/lurumad
Roberto Gónzalez
Roberto Gonzalez
Software Developer at Plain Conceptsrgonzalez@plainconcepts.com@robertogghttp://github.com/robertogg
Instalar .NET Version Manager (DNVM)
• curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
Con DNVM podremos instalar las diferentes versiones de .NET Execution Environment (DNX)
Instalar ASP.NET 5 en Mac OS X
Instalar .NET Execution Environment (DNX) para Mono o .NET Core:
• Instalar los prerequisitos usando Hombrew:
brew updatebrew install icu4c
• Instalar DNX .NET Core usando DNVM:
dnvm upgrade –r coreclr
Instalar ASP.NET 5 en Mac OS X
• Instalar DNX Mono usando DNVM:
dnvm upgrade –r mono
Instalar ASP.NET 5 en Mac OS X
DemoLinea de comandos en Mac OS X
Yeoman nos permite crear el esqueleto de nuestro proyecto web de manera rápida y sencilla.
• Instalar Yeoman:
brew install node
npm install -g yo generator-aspnet gulp bower
Yeoman
DemoYeoman
Gracias al proyecto Omnisharp podemos usar varios editores para trabajar con ASP.NET 5 y gozar de intellisense en todos ellos.
Herramientas de desarrollo
Visual Studio Code es un editor multiplataforma para desarrollar aplicaciones web con ASP.NET 5 y Node.js
Instalar VS Code:
https://code.visualstudio.com/
Instalar Visual Studio Code en Mac OS X
DemoVisual Studio Code
Atom es un editor desarollado por Github y gracias a Omnisharp podemos desarrollar aplicaciones ASP.NET 5 y disponer de Intellisense
• Instalar Atom:
https://atom.io/
• Instalar Omnisharp:
Podemos instalar Omnisharp desde Atom usando la interfaz de paquetes y buscando el paquete Omnisharp-Atom package, o usando la linea de comandos:
apm install omnisharp-atom
Instalar Atom en Mac OS X
DemoAtom
• Helios (in-process en IIS, ahora deprecado)• WebListener (HTTP.SYS based, solo en Windows)• Kestrel (basado en libuv, multiplataforma)
ASP.NET 5 Web Servers
ASP.NET 5 en Linux
ASP.NET 5Linux• ASP.NET 5 corre en DNX en múltiples plataformas
• .NET Core
• Mono
ASP.NET 5Preparacion de la máquina• Instalacion de DNVM
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
• Instalacion de DNX para .Net Core (Preview)sudo apt-get install libunwind8 gettext libssl-dev libcurl3-dev zlib1g libicu-dev
dnvm upgrade -r coreclr
• Instalacion de DNX para MonoInstalación de Mono
dnvm upgrade –r mono
ASP.NET 5Preparacion de la máquina• Instalacion de libuv
• Librería I/O multiplataforma asíncrona que es usada por Kestrel para hosting de aplicaciones ASP.ENT 5 Web
sudo apt-get install make automake libtool curl
curl -sSL https://github.com/libuv/libuv/archive/v1.4.2.tar.gz | sudo tar zxfv - -C /usr/local/src cd /usr/local/src/libuv-1.4.2 sudo sh autogen.sh sudo ./configure sudo make sudo make install sudo rm -rf /usr/local/src/libuv-1.4.2 && cd ~/ sudo ldconfig
ASP.NET 5Preparacion de la máquina• Instalacion de Yeoman
npm install –g yo bower grunt-cli gulpnpm install –g generator-webapp
• Creacion de la plantilla de Proyectoyo aspnet
Herramientas de desarrollo
• Visual Studio 2015
• Visual Studio Code
• Visual Studio Code
• Otros editors: Sublime Text, Atom, etc.
• Visual Studio Code
• Otros editores: Vi, Emacs, Atom, etc.
DemoAsp.net 5 en linux
ASP.NET 5 - Docker
Docker - Containers
ASP.NET 5Docker• Instalacion de Docker
• http://docs.docker.com/engine/installation/ubuntulinux/
DemoPublicar aplicacion en Docker
DemoPublicar aplicacion en Azure
Questions?
Luis Ruiz
Luis Ruiz
Software Developer at Plain Conceptslruiz@plainconcepts.com@luisruizpavonhttp://geeks.ms/blogs/lruiz
Roberto Gónzalez
Roberto Gonzalez
Software Developer at Plain Conceptsrgonzalez@plainconcepts.com@robertogghttp://github.com/robertogg
© 2014 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.