.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

ASP.NET Core 2.1.0-preview1: Razor UI in class libraries

One frequently requested scenario that ASP.NET Core 2.1 improves is building UI in reusable class libraries. With ASP.NET Core 2.1 you can package your Razor views and pages (.cshtml files) along with your controllers, page models, and data models in reusable class libraries that can be packaged and shared. Apps can then include pre-built UI ...

ASP.NET Core 2.1-preview1: Introducing HTTPClient factory

HttpClient factory is an opinionated factory for creating HttpClient instances to be used in your applications. It is designed to: 1. Provide a central location for naming and configuring logical HttpClients. For example, you may configure a client that is pre-configured to access the github API. 2. Codify the concept of outgoing middleware...

ASP.NET Core 2.1.0-preview1: Improvements for building Web APIs

ASP.NET Core 2.1 adds a number of features that make it easier and more convenient to build Web APIs. These features include Web API controller specific conventions, more robust input processing and error handling, and JSON patch improvements. Please note that some of these features require enabling MVC compatibility with 2.1, so be sure to ...

ASP.NET Core 2.1.0-preview1: Introducing compatibility version in MVC

This post was written by Ryan Nowak In 2.1 we're adding a feature to address a long-standing problem for maintaining MVC - how do we make improvements to framework code without making it too hard for developers to upgrade to the latest version? This is not an easy concern to solve - and with 7 major releases of MVC (dating back to 2009) there...

ASP.NET Core 2.1.0-preview1: Using ASP.NET Core Previews on Azure App Service

There are 3 options to get ASP.NET Core 2.1 Preview applications running on Azure App Service: 1. Installing the Preview1 site extension 2. Deploying your app self-contained 3. Using Web Apps for Containers Installing the site extension Starting with 2.1-preview1 we are producing an Azure App Service site extension that contains ...

Announcing Entity Framework Core 2.1 Preview 1

Today we are releasing the first preview of EF Core 2.1, alongside .NET Core 2.1 Preview 1 and ASP.NET Core 2.1 Preview 1. The new bits are available in NuGet as part of the individual packages, and as part of the ASP.NET Core meta-packages (both Microsoft.AspNetCore.All and the new Microsoft.AspNetCore.App), and included in the .NET Core ...

Announcing .NET Core 2.1 Preview 1

Today, we are announcing .NET Core 2.1 Preview 1. It is the first public release of .NET Core 2.1. We have great improvements that we want to share and that we would love to get your feedback on, either in the comments or at dotnet/core #1297. ASP.NET Core 2.1 Preview 1 and Entity Framework 2.1 Preview 1 are also releasing today. You can...

ASP.NET Core 2.1.0-preview1: Improvements for using HTTPS

Securing web apps with HTTPS is more important than ever before. Browser enforcement of HTTPS is becoming increasingly strict. Sites that don't use HTTPS are increasingly labeled as insecure. Browsers are also starting to enforce that new and existing web features must only be used from an secure context (Chromium, Mozilla). New privacy ...