dotnet on linux

19
.Net on Linux BY, EBRAM THARWAT SENIOR SOFTWARE DEVELOPER @ROBUSTA

Upload: ebram-tharwat

Post on 10-Aug-2015

100 views

Category:

Technology


0 download

TRANSCRIPT

.Net on LinuxBY, EBRAM THARWAT

SENIOR SOFTWARE DEVELOPER @ROBUSTA

Agenda:

Microsoft shift in mind towards towards open source.

ASP.NET 5 (aka vnext).

Demo showing how to run .NET Application across different platforms.

About me:

Ebram Tharwat Nassief,

Senior Software Developer @ robusta

[email protected]

https://twitter.com/EbramTharwat

https://github.com/Ebram-Tharwat

Microsoft previous thinking of open source

•It’s bad, really BAD !!.

•Microsoft is controlling the wheel, so community have to wait.

•To develop any .NET app, you need to use visual studio.

•To run web app, you are tightly coupled to IIS.

But this all is changing.

Microsoft commitment to open source

•Visual Studio Community.

•ASP.NET Web API.

•ASP.NET MVC are open source.

•Entity Framework(ORM).

•Project Katana.

•.NET Core Framework.

•Roslyn(.NET Compiler).

•Etc……..

Meet the avengers

Scott Gu Damian EdwardsScott Hanselman

What about other platforms?

•Do I still have to develop .NET applications only through windows OS?• No(unless you are targeting it).

•Do I need to write my code in a different way?• Nope

•Do I have to use Visual Studio?• No, choose your favorite editor(sublime, vim, atom, etc..).

•Do I need to install specific software/libraries?• For now, you still need mono.

•How this happened?• Through .NET Core and DNX.

.NET Core

• A general purpose, modular framework that can be used across a wide variety of app models and platforms because it is a refactored set of base class libraries (corefx) and runtime (coreclr)

• There will cross-platform version of .NET Core for Windows, Linux and Mac OS X systems, so apps can now be run cross-platform.

• One of the key benefits of .NET Core is its portability. You can package and deploy the CoreCLR with your application, eliminating your application’s dependency on an installed version of .NET.

• It will be delivered as a set of NuGet packages:• Easy to upgrade(agile fashion).• The .NET Core platform is turned into an app-local framework; deploy what your app needs.

.NET Execution Environment (DNX)

•A software development kit (SDK) and runtime environment that has everything you need to build and run .NET applications for Windows, Mac and Linux.

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

takes care of hosting the CLR, handling dependencies and bootstrapping your application.

•Package ecosystem:• DNX provides tools for installing, creating and managing NuGet packages.

.NET “verticals”

.NET Core

.NET 2015

What is open source?•Except windows stuff as it’s shipping in the windows.

•The full .NET Framework is “source open”.

Introducing ASP.NET 5

“ASP.NET 5 is an open source web framework for building modern web applications that can be developed and run on Windows, Linux and the Mac.” Scott Gu

Features of ASP.NET 5

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

Features of ASP.NET 5

Cloud-ready environment-based configuration

Built-in support for dependency injection

New tooling that simplifies modern Web development

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

Open source and community focused

Demo

ASP.NET in action on Ubuntu14.04

Is that everything?

Actually all of this is just a preview on what Microsoft team is working on now.

It’s not production ready yet.

Microsoft is on the way and moving consistently.

The best is yet to come.

Thank you

How can I help you?