.NET Blog
Free. Cross-platform. Open source. A developer platform for building all your apps.
Featured posts

Announcing .NET 11
.NET 11 is here with C# 15, faster developer tools, runtime and library improvements, and new capabilities for web, mobile, desktop, and AI apps.
Latest posts
Portable Class Library (PCL) now available on all platforms
This post announces a standalone release of the .NET portable class library reference assemblies that can be used on any operating system. It was written by Rich Lander, a Program Manager on the .NET Team. Update: Read PCL and .NET NuGet Libraries are now enabled for Xamarin for later information on this release. You can build .NET apps across a wide variety of platforms, and the Portable Class Library (PCL) helps you share your code and libraries across .NET platforms. Specifically, the PCL provides a set of common reference assemblies that enable .NET libraries and binaries to be used on any .NET ba...
Introducing Web Development and Tooling TV
We are very proud to present the first episode on our brand new Channel9 show – Web Development and Tooling TV. In this episode we talk to Scott Hunter who’s a Principal Group Program Manager on the Web Team (aka the boss). Scott introduces us to this new TV show and talks about what the team has been up to lately, as well as what’s to come in the future. The content will be focused primarily around ASP.NET and Visual Studio web tooling. It’s our plan to interview a lot of the developers, testers and program managers on the team to keep you up-to-date with all the stuff we’re working on. We’ll even show some o...
SignalR and user identity (authentication and authorization)
There are too many authentication types (Basic, Windows, Cookie, OAuth) to explain how to use all of them. In this sample, I focus on using Cookie Authentication to secure a website, a Persistent Connection, and a Hub. Authentication is configured on OWIN, you have to add some nuget packages and add code in Startup.cs. I started with a web project using the MVC Template. By default, it creates web forms to register users, input user credentials, configures an anti-forgery token for http requests, creates an entity framework repository for User Identity. For the self host server there is no template, so I created ...
Securing Static Resources with Windows Azure Active Directory Authentication
Visual Studio 2013 RC has a very useful feature of creating new ASP.NET application that are configured with Windows Azure Active Directory authentication. You can read more about it hereIf you open web.config file of such project that is secured with Windows Azure Active Directory, you will see following section: Code Snippet As you might know, WSFederationAuthenticationModule is the one that is responsible for authenticating incoming requests. However, this module runs only for those requests that go through ASP.NET pipeline. To enable it for all the incoming requests, including those for static files...
Friendly License Names
Yesterday afternoon, we enabled a new feature for both the NuGet gallery and the Visual Studio client (for NuGet >= 2.7) which will display the list of license names for a package in addition to simply providing a link to the license text. The big idea behind this feature is that it will aid in the decision making process over whether or not to use a package. While displaying text such as "MIT" may seem like a trivial problem, there is a significant amount of complexity involved in determining the name from a license document. In this feature, license names are determined as a result of analyzing the license ...
ASP.NET Identity NuGet packages for the nightly builds are available on MyGet
ASP.NET Identity packages are now available on MyGet. This means that a successful nightly build of ASP.NET Identity will be pushed to MyGet package feed along with the rest of ASP.NET Web Frameworks such as MVC, Web API, SignalR, EntityFramework etc Steps to follow in Visual Studio to configure the MyGet feed to pull in the nightly packages for ASP.NET Identity You have to configure NuGet to add a package source to the MyGet feed to pull in the latest nightly packages for ASP.NET Identity. - Right click project and click Manage NuGet packages - Bring up the Manage NuGet Packages dialog and Add a fee...
Enable and monitor ASP.NET App Suspend on Windows Server 2012 R2
This post describes how to enable and monitor ASP.NET App Suspend on Windows Server 2012 R2. It was written by Rich Lander, a Program Manager on the .NET team. ASP.NET App Suspend is a big new feature in the .NET Framework 4.5.1. You can read an overview of ASP.NET App Suspend (including a demonstration video) over on the .NET blog. ASP.NET App Suspend is a great feature for shared hosters and Enterprise IT. It enables apps to startup much faster and for each server to host many more apps. In our performance lab, we saw startup time drop by 90% and were able to pack 7 times more sites onto the same machine, ...
ASP.NET App Suspend – responsive shared .NET web hosting
This post introduces ASP.NET App Suspend, which is a game-changing feature in the .NET Framework 4.5.1. It radically changes the user experience and economic model for hosting large numbers of ASP.NET sites on a single machine. This post was written by Rich Lander, a Program Manager on the .NET team. Sharing can be hard. In my early days, I had trouble sharing lego bricks. Now, it’s web hosting. I have to choose between shared and dedicated hosting for the sites I put up. That choice is not always easy, since the cost and level of service can be so different. What if I didn’t have to share my legos. Wouldn’t ...
OWIN Middleware in the IIS integrated pipeline & StageMarkers
Although OWIN middleware components are primarily designed to run on an OWIN pipeline, it can run on IIS as well. Similar to how HttpModules can subscribe to a specific IIS integrated pipeline event, an OWIN middleware can be subscribed to run at a specific IIS integrated pipeline event. Check out OWIN Middleware in the IIS integrated pipeline to know how to configure Stage markers. Welcome your feedback!