.NET Blog
Free. Cross-platform. Open source. A developer platform for building all your apps.
Latest posts
Hosting .NET Core Services on Service Fabric
This post was written by Vaijanath Angadihiremath, a software engineer on the .NET team. This tutorial is for users who already have a group of ASP.NET Core services which they want to host as microservices in Azure using Azure Service Fabric. Azure Service Fabric is a great way to host microservices in a PaaS world to obtain many benefits like high density, scalability and upgradability. In this tutorial, I will take a self-contained ASP.NET Core service targeting the .NETCoreApp framework and host it as a guest executable in Service Fabric. Writing cross platform services/apps using the same code base is one o...
.NET Framework Monthly Rollup: October 2016
Today marks the first release of the new .NET Framework Monthly Rollup. Here's what went into the release: Security Microsoft Security Bulletin MS16-120 - Important: Security Update for Microsoft Graphics Component (3192884) This update resolves vulnerabilities in Microsoft Windows, Microsoft Office, Skype for Business, Silverlight, Microsoft Lync, and the Microsoft .NET Framework. The vulnerabilities could allow remote code execution if a user either visits a specially crafted website or opens a specially crafted document. This update addresses the vulnerabilities by correcting how the Windows font library hand...
.NET Framework Monthly Rollups Explained
Updated (2017/5/31) We recently introduced the .NET Framework Monthly Rollup, a new and simpler way for you to install all applicable .NET Framework updates in a single step. We wanted to go into more depth on these new releases. This post describes the three monthly update types that you can install. It shows you what the install process looks like and addresses some common questions that we have heard since introducing the new model. The introduction of these new monthly releases aligns with a similar set of monthly Windows releases that you can also learn more about. Monthly Releases There are three...
The week in .NET – On .NET on Net Standard 2.0 – Nancy – Satellite Reign
To read last week's post, see The week in .NET – On .NET on Cecil – NAudio – SpeechCentral – Hand of Fate. On .NET Last week, Immo Landwerth was on the show to talk about Net Standard 2.0: This week, we'll speak with Joe Morris and Srivatsn Narayanan about the new .NET Core build system. The show is on Thursdays and begins at 10AM Pacific Time on Channel 9. We'll take questions on Gitter, on the dotnet/home channel or on Twitter. Please use the tag. It's OK to start sending us questions in advance if you can't do it live during the show. Update (10/13/2016): we have to postpone this week's show. We apolo...
The week in .NET – On .NET on Cecil – NAudio – SpeechCentral – Hand of Fate
To read last week's post, see The week in .NET: On .NET on Orchard 2 – Mocking on Core – StoryTeller – Armello. On .NET Last week, JB Evain was on the show: This week, we'll speak with Immo Landwerth from the .NET team about NetStandard 2.0. The show begins at 10AM Pacific Time on Channel 9. We'll take questions on Gitter, on the dotnet/home channel. Please use the tag. It's OK to start sending us questions in advance if you can't do it live during the show. Package of the week: NAudio NAudio is a library for reading, writing, decoding, encoding, converting, and playing audio files. The following code ...
Storing and using secrets in Azure
Most applications need access to secret information in order to function: it could be an API key, database credentials, or something else. In this post, we'll create a simple service that will compare the temperatures in Seattle and Paris using the OpenWeatherMap API, for which we'll need a secret API key. I'll walk you through the usage of Azure's Key Vault for storing the key, then I'll show how to retrieve and use it in a simple Azure function. Prerequisites In order to be able to follow along, you'll need an Azure subscription. It's very easy to get a trial subscription, and get started for free. Where to ...
Introducing the ASP.Net Async SessionState Module
SessionStateModule is ASP.NET's default session-state handler which retrieves session data and writes it to the session-state store. It already operates asynchronously when acquiring the request state, but it doesn’t support async read/write to the session-state store. In the .NET Framework 4.6.2 release, we introduced a new interface named ISessionStateModule to enable this scenario. Benefits of the asynchronous SessionState module It’s all about the scalability. As the world moves to the cloud, it makes really easy to scale-out computing resources to serve the large spikes in service requests to an applicatio...
Implementing Seeding, Custom Conventions and Interceptors in EF Core 1.0
This post was written by Alina Popa, a software engineer on the .NET team. Updated 10/5/2016: This post has been updated to use improved Entity Framework Core techniques which don’t rely on internal APIs. Implementing Seeding, Custom Conventions and Interceptors in EF Core 1.0 Introduction Entity Framework Core (EF Core) is a lightweight and extensible version of the Entity Framework (EF) data access technology which is cross-platform and supports multiple database providers. You can find a comparison of EF Core vs. EF6 under the Entity Framework documentation. When moving an application from EF6 to EF C...
The week in .NET: On .NET on Orchard 2 – Mocking on Core – StoryTeller – Armello
To read last week's post, see The week in .NET: On .NET with Steeltoe – C# Functional Extensions – Firewatch. On .NET Last week, Sébastien Ros was on the show to talk about Orchard 2: This week, we'll speak with JB Evain about his work on the Visual Studio 2015 Tools for Unity, and maybe also Cecil. The show begins at 12PM Pacific Time (note that's 2 hours later than usual) on Channel 9. We'll take questions on Gitter, on the dotnet/home channel. Please use the tag. It's OK to start sending us questions in advance if you can't do it live during the show. Mocking on .NET Core Three major .NET mocking frame...