Hello ASP .NET Core!

By Shahed C on October 6, 2018

It’s been a while since I wrote a new blog post besides event announcements and posting slides so here’s the first of a new series of posts. The topic: ASP .NET Core!

ASPNETCoreLogo-300x267

Why ASP .NET Core?

With all the things I’ve been working with lately, I’ve still kept up to date on what’s new with ASP .NET Core for building Web Apps, Web APIs and even full-stack C# web applications with Blazor!

With the release of ASP .NET Core 2.1, and the upcoming releases of 2.2 (late 2018) and 3.0 (2019), now is a great time to be an ASP .NET Core developer. But where should you begin? You have many options.

Dev Tools for ASP .NET Core

  1. Visual Studio for Windows: a full-fledged IDE that runs on Windows (or even on Windows on your Mac via Parallels/Bootcamp. Get the latest version to try out new stable ASP .NET features and get the Preview versions to try cool new features. Install just the pieces you need. Start with the free Community edition for students, individuals and open-source projects.
  2. Visual Studio for Mac: build ASP .NET Core applications on a Mac in a full-fledged IDE. VS for Mac can also be used for macOS apps, Xamarin mobile apps for iOS/Android, cloud apps and more!
  3. Visual Studio Code: super light-weight code editor available on Windows, MacOS and Linux. Use the dotnet CLI tools in the integrated Terminal to quickly build ASP .NET Core web apps and more!

vs-logos

Project Types

Once you create a new ASP .NET Core Web project, you’ll have a few options:

  1. Empty: start with a clean slate if you know what you’re doing.
  2. API: start with a sample Web API endpoint, with the ability to add MVC components or Razor web pages as needed.
  3. Web Application: start with a sample Web App that contains Razor web pages, with the ability to add Web APIs and MVC components as needed.
  4. Web Application (MVC): start with a sample Web App that contains MVC components (Models, Views and Controllers), with the ability to add Web APIs and Razor web pages as needed.
  5. Razor Class Library: introduced in v2.1, build a reusable UI class library.
  6. Angular: build an ASP .NET Core application with an Angular front-end.
  7. React.js: build an ASP .NET Core application with a ReactJS front-end.
  8. React.js and Redux: build an ASP .NET Core application with a ReactJS + Redux front-end.

Note that HTTPS is selected by default and is extremely easy to include in an ASP .NET Core web application, even in a development environment. Optionally, select a Docker environment and Authentication type as appropriate.

project-types

When using Visual Studio Code or the dotnet CLI tools, you can create the same project types using CLI commands:

dotnet new <TEMPLATE> [--force] [-i|--install] [-lang|--language] [-n|--name] [--nuget-source] [-o|--output] [-u|--uninstall] [Template options] 

dotnet new <TEMPLATE> [-l|--list] [--type] 

dotnet new [-h|--help]

The options for new project templates are shown below:

dotnet-tools

Tutorials and Resources

This blog series will go into specific topics within ASP .NET Core. In the meantime, check out this list of tutorials and resources to help you get started.

aspnetcore-build2018   aspnetcore-dotnetconf2018   aspnetcore-ignite2018

Blogs and Video Streams to Follow

Here is a list of blogs and videos streams to follow for .NET Core and ASP .NET Core:

  1. .NET Blog: https://blogs.msdn.microsoft.com/dotnet
  2. ASP .NET Blog: https://blogs.msdn.microsoft.com/webdev
  3. Scott Hanselman: https://www.hanselman.com/blog
  4. Iris Classon: http://irisclasson.com
  5. Andrew Lock: https://andrewlock.net
  6. Mike’s dotnetting: https://www.mikesdotnetting.com
  7. Talking Dotnet: http://www.talkingdotnet.com
  8. Dotnetcore tutorials: https://dotnetcoretutorials.com
  9. ASP .NET Hacker: http://asp.net-hacker.rocks
  10. Morning Brew: http://blog.cwa.me.uk
  11. David Pine: https://davidpine.net
  12. Steve Gordon: https://www.stevejgordon.co.uk
  13. ASP .NET Community Standup: https://live.asp.net
  14. Jeff Fritz on Twitch: https://www.twitch.tv/csharpfritz
  15. .NET Core Podcast: https://dotnetcore.show/

Enjoy!

6 thoughts on “Hello ASP .NET Core!

  1. Pingback: Dew Drop - October 8, 2018 (#2818) - Morning Dew

  2. Pingback: Happy New Year 2019! | Wake Up And Code!

  3. Pingback: Hello ASP .NET Core v3.1! | Wake Up And Code!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.