.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
VS11 Beta JavaScript Feature comparison with VS2010sp1
In Visual Studio 11 Beta, we have exciting JavaScript editing features for the developers. Last year, we blogged “JavaScript Web development differences between Visual Studio 11 Developer preview and Visual Studio 2010”. Here are the differences between Visual Studio 11 Beta and Visual Studio 2010. IntelliSense XML Document Debug/Breakpoint MicrosoftAjax.js and other library Support Editor display Validation Misc You feedback is very valuable for us. Please go to http://connect...
Is it ok to use nested Parallel.For loops?
Every now and then, I get this question: “is it ok to use nested Parallel.For loops?” The short answer is “yes.” As is often the case, the longer answer is, well, longer. Typically when folks ask this question, they’re concerned about one of two things. First, they’re concerned that each nested loop will assume it “owns the machine” and will thus try to use all of the cores for itself, e.g. if their code was running on an eight-core machine, they’re concerned that the outer loop would run eight of the nested loops in parallel, each of which would use eight threads, such that there would be 64 threads all churn...
The NuGet Gallery Outage on March 9th
The NuGet Gallery was unavailable on March 9th from approximately midnight until 7:52 A.M., nearly eight hours. During this time all HTTP requests to the gallery website failed. In addition to affecting website users, the outage affected all NuGet client programs (such as the Visual Studio extension and nuget.exe) and other software that relies on the NuGet Gallery's feed and API. To start, we apologize for the disruption and inconvenience that this incident caused. We know that many of our customers were affected by the outage and we want to be transparent about what happened, what issues we found, how we plan ...
Introducing the NuGet Team Blog
For the last few months, the NuGet team has been considering starting a proper, official blog. This is that blog. How do we plan to use this blog? Here are a few ways we know we'll use it (and I'm sure we'll think of others as we go along): Feel free to leave us a comment, letting us know what else you'd like to see here.
Visual Studio 11 Beta HTML/CSS editor features
Visual Studio 11 Beta has some more improvement in HTML and CSS editors over the Developer Preview time. You can see the major feature descriptions through www.asp.net/vnext . In this channel9 video, Mads Kristensen demonstrated a few great HTML/CSS editor features in VS11 Beta (The video also demos Page inspector features by Jorge Gabuardi, and JavaScript feature by Mads as well). Also, Here is an additional list of HTML/CSS editor features that we improved in Visual Studio 11 Beta. HTML editor CSS editor ...
Optimizing the .NET Framework Deployment Experience for Users and Developers
Rapid development has been one of the enduring themes behind the design of the .NET Framework. We know that authoring application installers is particularly difficult and could be improved. The following post is by Richard Lander from the program management team on the Common Language Runtime. He explains our motivations for introducing a new model for deploying the .NET Framework as seen in the Windows 8 Developer Preview and updated in the Windows 8 Consumer Preview. – Brandon Everyone knows that it's all about the apps. I can think back to the early 1990s, when I was using both WordPerfect 5...
Visual Studio 11 Beta Razor editor issue workaround
We found Visual Studio 11 Beta hits a crash bug when editing a Razor page (cshtml/vbhtml) in a MVC4 project or a Razor2 Website if the indenting option for the HTML editor is set to Block instead of Smart. The workaround is to go to Tools->Options->Text Editor->HTML->Tab and change the indenting option to Smart.HTML smart indenting is a new feature in Visual Studio 11 and is the default option. However, if you have previous versions of Visual Studio installed on the same machine, the old indenting option might get accidently migrated to your Visual Studio 11 Beta settings. And the block HTML ind...
Are you using TPL Dataflow? We’d love to know!
Are you using the new System.Threading.Tasks.Dataflow.dll library, either from its CTPs or from the .NET 4.5 Developer Preview or Beta? We'd love to hear about it, and if you have time, what your experiences have been (good or bad). What kind of solution are you building, and how are you using TPL Dataflow in it? Has the library helped from a code maintenance perspective? From a performance perspective? Are there features you’d like to see added in the future?Please email me at stoub at microsoft dot com. We're looking forward to hearing from you. Thanks in advance!...
Implementing a simple ForEachAsync, part 2
After my previous post, I received several emails and comments from folks asking why I chose to implement ForEachAsync the way I did. My goal with that post wasn’t to prescribe a particular approach to iteration, but rather to answer a question I’d received… obviously, however, I didn’t provide enough background. Let me take a step back then so as to put the post in context.Iteration is a common development task, and there are many different variations on how iteration might be implemented. For example, a basic synchronous ForEach might be implemented as follows: public stat...