Microsoft has built a rich ecosystem around the various flavors of ASP.NET – MVC, Web API and even WebForms have a place in the modern web development world. So what the heck is up with ASP.NET Core anyways? Microsoft has flipped the ASP.NET world on its head with this fast, cross-platform web framework, designed from the ground up with developers from all walks of life in mind – and the change isn’t as scary as you think.
In this session, we’ll learn about ASP.NET Core and its design philosophies. We’ll learn how to leverage several popular development tools frequently used by developers outside of the ASP.NET ecosystem, including Gulp, Bower, Node and NPM, to build and run our application. Finally, we’ll use Visual Studio Code to create and run our very first ASP.NET Core project (on a Mac no less!)
For current ASP.NET developers, we’ll also touch on the portability of your current ASP.NET code.
4. ASP.NET Core in Production
• 1.0 is out!
• Latest version is available at dot.net
• Tooling for Visual Studio is still in preview
5. Let’s talk .NET Framework
• .NET Core – open source, lightweight subset of .NET Framework
• Needed components delivered via NuGet
• More iterative updates
• Deployed with your app
• Cross-platform
• .NET Framework
• You can still use full .NET Framework if you need stuff like System.Drawing or
other full-framework specific libraries
• Requires Windows
6. The times, they are a’changing’
ASP.NET Core Current ASP.NET
What’s The Same
• C#
• .NET Framework
What’s Different
• No VB.NET
• No Web Forms
• .NET Core
• Roslyn compiler
• Cross-platform
• Slightly different APIs
• No Web.config
• No Global.asax
• No dependency on MSBuild
7. Web Forms
• Web Forms isn’t a technology in ASP.NET Core
• It’s still being updated and supported
• Still needs System.Web
• Still needs IIS
• Still needs Visual Studio
8. Current MVC 5/Web API 2 Apps
• No direct upgrade path
• Create new project and copy over code
• APIs between the two differ slightly
• Otherwise, it’s a very familiar experience
Aims to be the best web stack for any platform
Host agnostic
Provide cross-platform development experience
Faster, more scalable than current ASP.NET
System.Web requests take ~30kb of memory per request
ASP.NET Core – around ~2kb