Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Getting Started with ASP.net Core 1.0

4,308 views

Published on

This powerpoint supports my demonstration on how to get started with ASP.net core 1.0, MVC Core, and EF Core. We also walk through how to get .NET core installed on MAC OSX and deploy from there.

Published in: Internet
  • Be the first to comment

  • Be the first to like this

Getting Started with ASP.net Core 1.0

  1. 1. joe.raio@microsoft.com
  2. 2. Joe Raio Senior Technical Evangelist DX Audience Joe.Raio@Microsoft.com joeraio.com @joescars About Me: Based in Ft. Lauderdale, FL. Recently Married. I love Music, Aviation and all things Technology
  3. 3. ASP.NET Core 1.0
  4. 4. ASP.NET 2015 in a Nutshell .NET Framework 4.6 .NET Core 1.0 Full .NET Framework for any scenario and library support on Windows Modular libraries & runtime optimized for server and cloud workloads
  5. 5. What about ASP.NET 5? ASP.NET Core 1.0 was previously called ASP.NET 5 It was renamed in January 2016 Announcement post More details You’ll still see it referred to as ASP.NET in Visual Studio and in some docs Will be updated in next ASP.NET Core Release Candidate
  6. 6. Now MVC and Web API are just features of ASP.NET Core
  7. 7. ASP.NET Core 1.0 One set of concepts – remove duplication Web UI and Web APIs Smooth transition from Web Pages to MVC (future) Built DI first Runs on IIS or self-hosted
  8. 8. ASP.NET Core 1.0 – Key Values Choose your Editors and Tools Open Source with Contributions Cross-PlatformOSS Seamless transition from on-premises to cloud Faster Development CycleTotally Modular Fast
  9. 9. Demo Getting started with ASP.NET Core 1.0
  10. 10. 16
  11. 11. Demo Creating an ASP.NET Core 1.0 project
  12. 12. Demo Working with ASP.NET Core 1.0 on Mac OSX
  13. 13. Mono Visual Studio Code ASP.NET 5 for Mac OS X https://docs.asp.net/en/latest/getting- started/installing-on-mac.html
  14. 14. TagHelpers HTML helpers expressed as tags Ex. Instead of: @Html.LabelFor(m => m.UserName, new { @class = "col-md-2 control-label" }) Write this: <label asp-for="UserName" class="col-md-2 control-label"></label> Easier to customize with additional attributes Work seamlessly with the HTML editor
  15. 15. TagHelpers @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) { @Html.AntiForgeryToken() @Html.ValidationSummary(true) <fieldset> <legend>Log in Form</legend> <ol> <li> @Html.LabelFor(m => m.UserName) @Html.TextBoxFor(m => m.UserName) @Html.ValidationMessageFor(m => m.UserName) </li>
  16. 16. TagHelpers <form anti-forgery=“true“ validation-summary=“true” action="Create“> <fieldset> <legend>Log in Form</legend> <ol> <li> <label for=“UserName”> <input for=“UserName”> <span validation-for="Name" style="color:blue" /> </li>
  17. 17. public interface ITagHelper { int Order { get; } Task ProcessAsync(TagHelperContext context, TagHelperOutput output); } TagHelpers: Create Your Own Examples: https://github.com/aspnet/Mvc/tree/dev/src/Microsoft.AspNet.Mvc.TagHelpers
  18. 18. http://www.asp.net/vnext http://get.asp.net http://docs.asp.net https://live.asp.net/
  19. 19. Joe.Raio@Microsoft.com http://joeraio.com http://azure.Microsoft.com http://www.dreamspark.com http://www.bizspark.com Download this presentation: http://aka.ms/sfcc2016joe

×