.NET Blog

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

Featured posts

Announcing .NET 11
Nov 10, 2026
Post comments count 4
Post likes count 25

Announcing .NET 11

.NET Team

.NET 11 is here with C# 15, faster developer tools, runtime and library improvements, and new capabilities for web, mobile, desktop, and AI apps.

.NETASP.NET CoreC#

Latest posts

Sep 26, 2012
Post comments count 0
Post likes count 0

WCF Duplex Bi-directional Streaming with WebSocket Transport

James Osborne-MSFT

DuplexBiDirectionalStreaming VS2012 project DuplexBiDirectionalStreaming.zip Introduction With WebSocket transport, it’s possible to use streamed transport on the Duplex Callback – something that was previously a technical limitation with WCF but is now possible using this transport. New to .Net4.5 is the NetHttpBinding (and NetHttpsBinding), which is a new standard binding that leverages the WebSocket transport if it makes sense to do so. You can configure it to always use WebSocket transport, but by default, it will only use it for Duplex channel shapes. Why? Well, what this transport gives you is the ability...

Sep 26, 2012
Post comments count 0
Post likes count 0

Invoking NuGet Services from inside Visual Studio

Luan Nguyen

One of the best kept secrets of the NuGet extension is that besides the UI that everyone has become familiar with, it also exports some useful services, via MEF, which allow other components in VS to interact with NuGet. These include installing packages, uninstalling packages and querying for installed packages. Over the past year, the NuGet team has received many inquiries from various teams inside and outside Microsoft asking us how to perform such tasks from their components. We have solidified the guidance over time and wanted to share it broadly. As of the current version (2.0), NuGet exports six interfac...

Sep 22, 2012
Post comments count 0
Post likes count 1

New TaskCreationOptions and TaskContinuationOptions in .NET 4.5

Stephen Toub - MSFT

Astute users of the Task Parallel Library might have noticed three new options available across TaskCreationOptions and TaskContinuationOptions in .NET 4.5: DenyChildAttach, HideScheduler, and (on TaskContinuationOptions) LazyCancellation.  I wanted to take a few minutes to share more about what these are and why we added them.DenyChildAttachAs a reminder, when a Task is created with TaskCreationOptions.AttachedToParent or TaskContinuationOptions.AttachedToParent, the creation code looks to see what task is currently running on the current thread (this Task’s Id is available from the static Task.Curren...

Sep 21, 2012
Post comments count 0
Post likes count 0

ASP.NET 4.5 ScriptManager Improvements in WebForms

pranav rastogi

The ScriptManger control has undergone some key targeted changes in ASP.NET 4.5 which makes it easier to register, manage and combine scripts using the ASP.NET weboptimization feature. This post will highlight the changes that have happened to this control Easy Integration with JQuery and JQueryUI The default templates for WebForms ship with the following packages “AspNet.ScriptManager.jQuery” and “AspNet.ScriptManager.jQuery.UI.Combined”. These packages make it easier to bring in jquery and jqueryUI libraries  and also register them with the ScriptManager. Here is how it works. Th...

Sep 19, 2012
Post comments count 0
Post likes count 0

Configuring your ASP.NET application for Microsoft OAuth account

pranav rastogi

This post is a part of the series about how to enable and use OpenID/OAuth support that was added to the ASP.NET templates in Visual Studio 2012. In this post I am going to detail the instructions on configuring your application to use Microsoft account for authentication. I am going to be focusing on configuring the application for a development environment(using VS & IISExpress)     ...

Sep 15, 2012
Post comments count 0
Post likes count 1

An ASP.NET Open Source How-To Decoder Ring

Henrik F Nielsen

As you probably know, ASP.NET MVC, Web API, and Web Pages are available as open source on aspnetwebstack.codeplex.com. If you want to go beyond using the official RTM versions and either use the latest nightly drops, compile it yourself, or create pull requests then here’s a decoder ring for how to get started:1) Using the Nightly NuGet PackagesFor when you want to try out the latest nightly NuGet packages from our preview feed without having to compile the source.2) Getting Symbols and Source for Nightly BuildsFor when you run into trouble using the nightly NuGet packages or want to see what is going on. M...

Sep 13, 2012
Post comments count 0
Post likes count 0

How to use the EntityDataSource control with the DbContext API

Tom Dykstra - MSFT

The EntityDataSource control is designed to work with the ObjectContext API because that's all that existed when the control was created. The DbContext API was introduced later, in Entity Framework 4.1 alongside the Code First development workflow.  Since Code First and DbContext were introduced together you might be accustomed to associating the two, but now in Entity Framework 5.0 the DbContext API is the recommended and default API for all development workflows – Database First and Model First as well as Code First.  So if you want to use the EntityDataSource control, sooner or later you'll want to know how to...

Sep 12, 2012
Post comments count 0
Post likes count 0

ASP.NET Data Access Guidance Published

Tom Dykstra - MSFT

On 9/11 we published a new* set of pages on MSDN offering guidance for getting started with data access in ASP.NET. If you're already using ASP.NET, parts of these pages will just repeat what you already know or take for granted, but a few parts contain recommendations that are new for ASP.NET 4.5. These pages clearly identify which technologies are still available and supported but are no longer part of Microsoft's strategic direction, such that you should think twice before choosing them if you're creating something new. One page provides help setting up SQL Server connection strings.Here are links to the new p...

Sep 12, 2012
Post comments count 0
Post likes count 0

Celebrating the Visual Studio 2012 launch with the release of a popular App

Brandon Bray

Today, we’re happy to announce the launch of Visual Studio 2012 and the .NET Framework 4.5. You can read more about the Visual Studio 2012 launch on Jason Zander’s blog. We’ve been using the new version of Visual Studio for several months now to build .NET Framework apps for Windows, Windows Store, Windows Azure, and Window Server. The Visual Studio team has made many improvements throughout the product that I’m sure you’ll love. We’ve certainly found quite a few. Many of you have asked for the “.NET Feature Catalog” app that we’ve been demonstrating at recent conferences such as TechEd. To celebrate the la...