Showing archive results for March 2012

Mar 6, 2012
Post comments count0
Post likes count0

Visual Studio 11 Beta Razor editor issue workaround

Web Development Tools Microsoft
Web Development Tools Microsoft

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...

ASP.NET
Mar 6, 2012
Post comments count0
Post likes count0

Are you using TPL Dataflow? We’d love to know!

Stephen Toub - MSFT
Stephen Toub - MSFT

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 h...

.NET Parallel Programming
Mar 5, 2012
Post comments count2
Post likes count2

Implementing a simple ForEachAsync, part 2

Stephen Toub - MSFT
Stephen Toub - MSFT

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 ...

.NET Parallel Programming
Mar 5, 2012
Post comments count0
Post likes count0

Update 4.0.3 for the Microsoft .NET Framework 4

Layla Driscoll
Layla Driscoll

Update (2017): See .NET Framework Releases to learn about newer releases. This release is no longer supported. We continue to bring certain features through updates to .NET 4 without having to wait for the .NET 4.5 release. This post covers what the latest platform update has to offer. Vivek Mishra from the .NET Servicing team authored the followin...

.NET
Mar 5, 2012
Post comments count0
Post likes count0

Visual Studio 11 Beta Page Inspector Tutorial live in asp.net

Web Development Tools Microsoft
Web Development Tools Microsoft

Using Page Inspector In Visual Studio 11 Beta, you can see what elements in the source files (including server-side code) have produced the HTML markup that is rendered to the browser. Page Inspector also let you modify CSS properties and DOM element attributes and see the changes reflected immediately in the browser.  We have two tutorials li...

ASP.NET
Mar 4, 2012
Post comments count0
Post likes count1

Implementing a simple ForEachAsync

Stephen Toub - MSFT
Stephen Toub - MSFT

Jon Skeet recently asked me how I might go about implementing the following “asynchronous ForEach” behavior: Given what we now know about SemaphoreSlim from my previous post, here’s one way to achieve this: public static Task ForEachAsync<TSource, TResult>(     this IEnumerable<TSource> ...

.NET Parallel Programming
Mar 3, 2012
Post comments count0
Post likes count0

Visual Studio 11 Beta currently incompatible with AsyncCtpLibrary*.dll

Stephen Toub - MSFT
Stephen Toub - MSFT

The C# and Visual Basic compilers implement support for async/await by generating code that utilizes some specific types in the underlying framework.  These types include the “awaiters” used to await things (like Tasks) as well as the “builders” used in handling the lifetime of an async method’s invocation. With t...

.NET Parallel Programming
Mar 3, 2012
Post comments count0
Post likes count0

“The Zen of Async” at the MVP Summit 2012

Stephen Toub - MSFT
Stephen Toub - MSFT

Thanks to everyone who attended my "The Zen of Async" presentation on Thursday at the MVP Summit.  As I've had several requests, here are the slides and code for the talk. Toub_MVPSummit2012_ZenOfAsync.zip

.NET Parallel Programming
Mar 1, 2012
Post comments count0
Post likes count0

New time saving features for Web projects in Visual Studio 11 Beta

Web Development Tools Microsoft
Web Development Tools Microsoft

In planning for the next release of Visual Studio, streamlining the development process was a high priority.  In this vein we are proud to announce two new features in Visual Studio 11 Beta that simplify and improve the development experience: setting the default browser from the toolbar, and quickly adding new items to your project from the c...

ASP.NET