.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
Announcing the release of .NET Framework 4.5 RTM – Product and Source Code
Updated (2017): See .NET Framework Releases to learn about newer releases. This release is unsupported. Updated – 8/16/2012: Added license information about the source code release. Today, we are happy to announce the availability of Microsoft .NET Framework 4.5 and Visual Studio 2012. You can develop apps that will take advantage of all the great features that we have added, including new features in Windows 8. We are also announcing the availability of the .NET Framework 4.5 reference source code, under the Microsoft Reference Source License (MS-RSL). You can read more about the Visual Studio 2012 release on...
OAuth/OpenID Support for WebForms, MVC and WebPages
[Update] Adding relevant links at the bottom of the post One of the coolest features in Visual Studio 2012 is the ability to login using your Microsoft, Facebook, Twitter or Google account. The project templates showcase a social way of logging in along with the usual way of logging in by creating a local account This post highlights how you can turn on support for logging through these services in the project templates. Head over the following video to get a quick glance on this feature http://www.asp.net/vnext/overview/videos/oauth-in-the-default-aspnet-45-templates Enable OAuth login using Facebook,...
Using Dynamic Data with Entity Framework DbContext
In Visual Studio 2012, if you create a ADO.NET Data Model then the generated Context class derives from a type called DbContext instead of ObjectContext. DbContext is also used when you are using EntityFramework Code First This post outlines the changes you have to do to your Dynamicdata project template if you want your context to derive from DbContext 1. Change Global.asax to get the ObjectContext 2. Change ManyToMany.ascx.cs in the Dynamicdata\Fieldtemplates folder ...
Results of NuGet CDN Experiment
A little over a week ago, we asked for your help with an experimentt that we were conducting to see whether there was value in enabling CDN support for our packages blob storage container. Over 100 of you responded from all over the world, and the data that you provided made it pretty clear that there was sufficient justification for turning on CDN support for the production NuGet blob storage container. So firstly, thank you to everyone who participated in the experiment! In addition to turning on CDN, we wanted to share the results of the data that you provided us. First, the worldwide numbers look like the fo...
.NET Framework 4.5 Talks from TechEd 2012 and aspConf
The .NET Framework team is out at conferences all the time. We love getting to meet with you all to discuss the latest news about what we’re building and even better learning about what all of you want to build. Deon Herbert, a program manager on the .NET Framework project management team, pulled together the following article for all of you who couldn’t meet us at these conferences. --Brandon There are several conferences, talks, and seminars that take place throughout the year. Since not everyone has the opportunity to attend these, we're providing a roll-up of recent events so you can find the most...
Plans regarding Website projects and Web Deployment Projects
The release of Visual Studio 2012 is right around the corner. If you’ve been following our blog/twitter then you may know that many of the Web related components of Visual Studio are now“out-of-band”, meaning that we can update them independently of Visual Studio itself. Because of this we are planning to ship updates a few times a year. We are currently in the process for planning our first update for VS 2012 and we wanted to share some of the items that we are planning to work on. We would like to get your feedback on these ideas to ensure that we are doing the right things. If you have comments please do let u...
Processing tasks as they complete
Recently I’ve had several folks ask me about how to process the results of tasks as those tasks complete.A developer will have multiple tasks representing asynchronous operations they’ve initiated, and they want to process the results of these tasks, e.g. List<Task<T>> tasks = …; foreach(var t in tasks) { try { Process(await t); } catch(OperationCanceledException) {} catch(Exception exc) { Handle(exc); } } This approach is fine for many situations. However, it enforces an additional co...
Help Us Test CDN for NuGet.org
Over the past few weeks, we’ve been investigating whether to turn on the content delivery network (CDN) feature of the Azure blob storage container for NuGet packages. In theory, this would make package downloads faster – especially if you’re located outside of the United States. We want your help to conduct an experiment to measure the difference in downloading packages with CDN enabled verses disabled. Our initial experiment deployed nuget.exe into different regions and measured the time to download a set of NuGet packages. Unfortunately, in all of the regions we deployed to, we were still sitting on an Intern...
What’s new in GC in CLR 4.5 from our team blog
This is now live from CLR's team blog. This paints a more complete picture than what I talked about in my "What's new in 4.5 GC" Channel 9 interview which mostly focused on Server Background GC. http://blogs.msdn.com/b/dotnet/archive/2012/07/20/the-net-framework-4-5-includes-new-garbage-collector-enhancements-for-client-and-server-apps.aspx Enjoy!