La descarga está en progreso. Por favor, espere

La descarga está en progreso. Por favor, espere

.NET Multiplataforma (Windows, Linux, OS X)

Presentaciones similares


Presentación del tema: ".NET Multiplataforma (Windows, Linux, OS X)"— Transcripción de la presentación:

1 .NET Multiplataforma (Windows, Linux, OS X)
Andrés G. Vettori @andresvettori

2

3 Ejecutando una aplicación .NET en Linux
4/24/2017 7:39 AM Ejecutando una aplicación .NET en Linux Run: ./corerun HelloWorld.exe // corerun es el host nativo que carga y corre la aplicación // En Windows, el proceso de bootstrapping de una aplicación .NET esta incluido en el OS © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

4 .NET en Linux y OS X .NET Framework 4.6 .NET Core 5 Shared WPF
Windows Forms ASP.NET (4 & 5) ASP.NET 5 Universal Windows Apps .NET Framework 4.6 .NET Core 5 CoreCLR .NET Native Fully-featured and integrated .NET libraries and runtime for Windows Modular and optimized .NET libraries and runtimes Shared 64-bit JIT + SIMD Garbage Collector Runtime components Base class libraries NuGet packages Libraries Compilers .NET Compiler Platform (Roslyn) Languages innovation

5 ¿Por que? La Web Evoluciona

6 ¿Por que? Las tecnologías tiene que evolucionar para acompañar
Web 1.0 Migración Desktop a Web Web 2.0 Integración con Estándares y JavaScript Web Moderna Integración en el Server y en el Cloud

7 Beneficios Se pueden correr aplicaciones .NET en ambientes Linux para escenarios server/cloud Soporte en VS para desarrollo y despliegue de aplicaciones .NET en ambientes Linux, incluyendo Docker, y la posibilidad de debug remoto de aplicaciones NET corriendo en Linux Compilación, edición, y debugging de código .NET en OS X con Visual Studio Code (o cualquier editor). .NET Core es open source (el código entero esta GitHub)

8 .NET Runtimes Full .NET CLR Core CLR (cloud-optimized runtime)
Incluye toda las APIS, y asegura compatibilidad hacia atrás. Core CLR (cloud-optimized runtime) Pequeño (11 MB) Compartimentado y distribuido via NuGet Solo uso lo que necesito Side by Side: Se distribuye con la aplicación Cross-Platform Code CLR Mac, Linux, FreeBSD Ryujit y .NET GC ahora son públicos y OSS

9 .NET Execution Enviroment (DNX)
4/24/2017 .NET Execution Enviroment (DNX) Es la infraestructura común que “hostea” el CLR y provee servicios a las aplicaciones (principalmente carga de DLL y manejos de paquetes y dependencias) Herramientas multiplataforma DNVM (Version Manager) DNU (Package Manager) DNX (para correr comandos) Compilación dinámica ASP.NET 5 esta construido sobre DNX Es la implementación de OWIN de MS Nuevo HTTP Pipeline 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. It provides a host process, CLR hosting logic and managed entry point discovery. DNX was built for running cross-platform ASP.NET Web applications, but it can run other types of .NET applications, too, such as cross-platform console apps © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

10 Demo DNX en Linux y OS X

11 Instalación de .NET en OS X
4/24/2017 7:39 AM Instalación de .NET en OS X Utilizando Homebrew ( Compilando // Homebrew es un popular administrador de paquetes para Mac © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12 Instalación de .NET en Linux
4/24/2017 7:39 AM Instalación de .NET en Linux Utilizando Mono Utilizando Docker Crear una VM desde Azure Market Place Compilando © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

13 Instalación de .NET en Windows
4/24/2017 7:39 AM Instalación de .NET en Windows Instalando Visual Studio 2015 Compilando © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

14 Herramientas de desarrollo
Build 2015 4/24/2017 7:39 AM Herramientas de desarrollo Visual Studio 2015 Visual Studio Code Otros editors: Sublime Text, Atom, etc. Otros editores: Vi, Emacs, Atom, etc. © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

15 Demo ASP.NET 5 en Linux y OS X

16 Ejecutando una aplicaciones ASP.NET 5 en Linux
4/24/2017 7:39 AM Ejecutando una aplicaciones ASP.NET 5 en Linux Para ejecutar la app: dnx kestrel Ir al website: // dnx (.NET Execution Environment) contiene el código requerido de bootstrap requerido pata iniciar y correr una aplicación ASP.NET 5 // kestrel es un web server multiplataforma para ASP.NET 5 © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

17 Acceso a datos .NET Core en Linux ofrece acceso a datos nativo en:
SQL Server (remote access) Azure SQL Database No hay que hacer cambios en el código de acceso a datos ADO.NET Entity Framework No hay que migrar datos En el futuro se van a soportar mas data providers Azure SQL Database SQL Server In cloud On premise

18 Demo Acceso a Datos

19 Visual Studio Code 101 Editor liviano y multiplataforma, para Windows, OS X y Linux Provee IntelliSense, colorization, refactoring, etc. Edición, compilación, y ejecución local Soporte para Debugging de aplicaciones .NET apps (en el futuro)

20 Demo Scaffold con Yeoman Visual Studio Code

21 Despliegue Xcopy deployment
On-premise Azure IaaS (Linux VM) Docker container Windows container Se pueden utilizar cualquiera de las tecnología de deployment disponibles en el OS correspondiente (Windows/Linux/OS X) Se puede incluir .NET Core con la aplicación No se necesita una instalación de .NET a nivel de maquina

22 Linux VM en Azure Marketplace
Todo lo que e necesita para evaluar .NET en Linux .NET Core ASP.NET 5 Parts Unlimited sample app

23 Software Containers (simplificado)
Un container es una “maquina virtual liviana”

24 Docker Docker es la tecnología de containers mas popular
Azure soporta Docker Docker va a soportar “Windows Containers” Visual Studio 2015 provee soporte para publicar y administrar Docker containers

25 Llamadas de APIs nativas desde .NET on Linux
[DllImport("libc")] private static extern int printf(string format); printf("Hello, World\n"); // Igual que Platform Invoke en Windows © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

26 Demo Extern calls Running in Docker

27 ¿Y Mono? Mono es un plataformas muy popular para desarrollos móviles multiplataforma en NET Para escenarios mobiles funciona muy bien pero Mono no esta diseñado pata escenarios server/cloud con calidad productiva High throughput Scale up/out Mean Time To Failure (MTTF)

28 Promesas de Microsoft Aplicaciones .NET Core apps van a ejecutar en ambientes Linux productivos, incluyendo Docker containers (on-prem y cloud) Edición, compilación, y debugging de código .NET en Mac OS X usando Visual Studio Code (o cualquier editor). Aplicaciones que usen características agnósticas a la plataforma van a tener el mismo comportamiento en Windows y Unix Microsoft va a soportar, y mantener .NET como si fuera cualquier otro producto de Microsoft

29 4/24/2017 7:39 AM ¿Preguntas? © 2010 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.

30 ¡ Gracias! andresv@lagash.com @andresvettori
4/24/2017 7:39 AM ¡ Gracias! @andresvettori © 2010 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.


Descargar ppt ".NET Multiplataforma (Windows, Linux, OS X)"

Presentaciones similares


Anuncios Google