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 Core 1.0


Published on

This powerpoint supports my demonstration on how to get started with 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
  • Use this weird secret involving text messages to get your Ex to come crawling back! Learn how ★★★
    Are you sure you want to  Yes  No
    Your message goes here

Getting Started with Core 1.0

  1. 1.
  2. 2. Joe Raio Senior Technical Evangelist DX Audience @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 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:
  18. 18.
  19. 19. Download this presentation: