Sending HTML Templated Emails From .NET Core 2.0

A super simple way to sending email from your .NET Core applications

As of .NET Core 2.0 the SMTP Client and classes you’ll need to send email have been ported over to .NET Core. Here I’ll quickly show you how to send email from your .NET Core applications. Sending Email From .NET Core 2.0 The first thing you need to do is ensure your project is .NET Core 2.0 or higher. If you’re not sure, check your .csproj file, you should see something like this: <TargetFramework>netcoreapp2. [Read More]

Deploying .NET Core To Linux

Deploy your ASP.NET Core Application To Linux Using SSH & VSTS

This is a part two of my .NET Core on Linux series, if you missed part one check out the first post Hosting .NET Core On Linux. In this article we’ll be setting up a continuous delivery pipeline to ensure that your code is building and deployable all the time. I’ll show you how to use Visual Studio Team Services (VSTS) to build your code and then set up a release plan to deploy your code to a Linux server via SSH. [Read More]

Hosting .Net Core On Linux

Set Up Ubuntu With Nginx To Host ASP.Net Core Apps & APIs

I’d always wished I could spin up a low cost linux server and throw a website out on it. I’d been secretly jealous of python and node for years. It is also a big reason I’d gotten interested in .Net Core a long time ago. In this article I’ll show you how to set up a new Linux server, configure it for running an ASP.Net Core Web Application or API, monitor it and more. [Read More]

.Net Core Configurations

Managing Multiple .NET Core Application Environment Configurations With Well Organized JSON Config Files

.NET Core gives you the ability to easily manage configurations for your application across multiple environments (eg: local, dev, production, etc). Read on to find out how to set your environment on the command line and even for Docker. Startup Methods For .NET Core 1.x & 2.0 Projects For your .NET Core 1.x projects, your Startup.cs should contain code along the lines of: public Startup(IHostingEnvironment env) { var builder = new ConfigurationBuilder() . [Read More]

.Net Core In A Container

How To Run a .NET Core API Inside a Docker Container

Using Docker With .NET Core Docker is an incredibly popular software container platform. If you don’t know what it is read more about it here. Docker for Windows I’m running Windows 10 and using Docker for Windows. The most important thing to mention is that as of writing this Docker for Windows only runs on 64 bit Windows 10 Pro, Enterprise and Education. Check the Docker for Windows page for the full requirements. [Read More]

The .Net Core CLI

How to Get Started Using the .NET Core Command Line

A lot has changed in the land of .NET Core since my last blog post. For me, the best change is the .NET Core tooling. The command line interface (CLI) has really been greatly improved. I’d previously recommended yeoman to setup a new .NET Core project, but now for most scenarios I use the CLI. The .NET Core CLI Basic Commands The .NET Core CLI gives you a quick easy way to do things like: [Read More]

Setting Up Your .Net Core Environment

Get .NET Core Up and Running In No Time At All With the .NET CLI and VS Code

There are a lot of blog posts and articles about .NET core. Most of them are focused on developing .NET core applications through Visual Studio. That’s great, but I know a lot of .NET developers view the console more like this: Let’s change that. This will be the first in a series of posts focusing on using the command line and VS Code to develop, build, and maybe even deploy some . [Read More]