.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
Visual Studio project compatibility and VisualStudioVersion
One of the most requested features of Visual Studio 2012 was the ability to open projects in both VS 2012 as well as VS 2010 (requires VS 2010 SP1). In case you haven’t heard we did implement that feature. You may be wondering how we were able to do this and how this may impact you. If you open the .csproj/.vbproj for a Web Project created in VS2010 you will see the following import statement. When you open this project in VS 2012 there are a few changes made to your project file to ensure that it can be opened in both VS 2010 SP1 and VS 2012. One of the changes made to the project when it is first loaded in ...
Getting Started with ASP.NET 4.5 Web Forms
The best way to learn what’s new in ASP.NET 4.5 Web Forms, is to work through the latest tutorial series by Erik Reitan: Getting Started with ASP.NET 4.5 Web Forms. The 10 tutorials in the series progressively guide you through building a Web Forms application, which is a simplified example of a store front web site that sells items online. Each tutorial builds on the previous tutorial. When you’re finished, you’ll be familiar with common ASP.NET concepts, as well as many of the new features available in ASP.NET 4.5, including effective use of the new model binding features. In addition, you’ll learn about, E...
Releasing Microsoft ASP.NET Universal Providers Core 1.2
I hope everyone has been busy downloading Visual Studio 2012 and have started building awesome web applications. We have been busy too during this time.We have just released an update to the version of Universal Providers that shipped with VS2012. Following are the key changes with this release What should you doThis version of Universal Providers Core that shipped with VS2012 was 1.1. Take a moment and update to 1.2You can follow this documentation on how to update a nuget package.While updating you will get the EntityFramework 5.0.0 package as well from the nuget.orgSome common FAQ ...
Profile specific web.config transforms and transform preview
When we released VS2010 we add support for web.config (XDT) transforms during publish/package. Note: From now on I’ll only use the word publish from now on but the full content relates to packaging as well. In the original implementation when you published your web project the web.config file would be transformed by the file web.{Configuration}.config, where {Configuration} is the project build configuration. For example Debug, or Release. If you publish on Release and there exists a web.release.config we will take your web.config and transform it with web.release.config before publishing. Cascading web.config t...
Links to ASP.NET WebAPI blog posts and Data Access blog posts
Here are some blog posts about ASP.NET WebAPI that we just released. Here are some ASP.NET Data access blog posts intended for newcomers to ASP.NET. The purpose is basic guidance for making data access choices for ASP.NET application development. The two SQL Server docs may also be useful to people who have been using ASP.NET but aren’t familiar with LocalDB and SSDT. Enjoy web development!
Migration for user accounts from the SqlMembershipProvider to the Universal Providers
As you know ASP.Net SqlMembershipProvider / SqlRoleProvider only support Microsoft SQL Server and Microsoft SQL Server Express. There is no support for Microsoft SQL Azure and Microsoft SQL Server Compact. The ASP.NET Universal Providers have been created in order to add support for SQL Azure to be ready for cloud environments like Azure. Here we will talk about how to migrate your existing project with the SqlMembershipProvider for your user accounts and passwords to the Universal Providers. First, install the Universal Providers Nuget package. This will update the existing project to use Universal Provider...
Implementing Then with Await
In a post a while ago, I talked about sequential composition of asynchronous operations. Now that we have the async/await keywords in C# and Visual Basic, such composition is trivial, and async/await are indeed the recommended way to achieve such composition with these languages.However, in that post I also described a few “Then” methods (similar methods are now available in JavaScript and VC++), and I thought it’d be fun to quickly show how Then can be implemented in terms of await. We’d probably want to support Then methods that operate on either Task or Task<TResult>, and th...
More info on publish links in Visual Studio 2012
Within the web publishing tools in Visual Studio there are a few places where we point to more resources. For example if you open a VS publish profile (.pubxml) file you will see a link in the comments pointing to http://go.microsoft.com/fwlink/?LinkID=208121. Note: you can find the VS publish profiles in your web project under Properties\PublishProfiles or My Project\PublishProfiles This is an “FWLink” and we can set the destination URL to whatever value we want. In this case the FWLink points to How to: Edit Deployment Settings in Publish Profile (.pubxml) Files and the .wpp.targets File in Visual Studio ...
Visual Studio 2012 RTW
Visual Studio 2012 is now released to the web. Please visit Jason Zander’s Blog for detailed announcement. This page lists what’s new in ASP.NET 4.5 and Visual Studio for Web.We are updating the Visual Studio 2010 publish experience as well to align with the features available in Visual Studio 2012 RTW. The bits are inside Windows Azure SDK for .NET which can be downloaded in https://www.windowsazure.com/en-us/develop/net/.Also, we are releasing the following at the same time: You can get the details of the Web API release from this post.Videos about the new features by Scott Hanselman: ...