Showing results for March 2012 - .NET Blog

Mar 25, 2012
0
2

Do I need to dispose of Tasks?

Stephen Toub - MSFT
Stephen Toub - MSFT

I get this question a lot: “Task implements IDisposable and exposes a Dispose method.  Does that mean I should dispose of all of my tasks?” SummaryHere’s my short answer to this question: “No.  Don’t bother disposing of your tasks.”Here’s my medium-length answer: “No.  Don&rsquo...

.NET Parallel Programming
Mar 24, 2012
0
3

Should I expose asynchronous wrappers for synchronous methods?

Stephen Toub - MSFT
Stephen Toub - MSFT

Lately I’ve received several questions along the lines of the following, which I typically summarize as “async over sync”: In my library, I have a method “public T Foo();”.  I’m considering exposing an asynchronous method that would simply wrap the synchronous one, e.g. “public Task<T> FooAsync...

.NET Parallel Programming
Mar 22, 2012
0
0

Visual Studio 11 Express Beta for Web new features

Web Development Tools Microsoft
Web Development Tools Microsoft

In earlier blog, we mentioned that Visual Studio 11 Express Beta for Web is available to download. Besides the common features seen in Visual Studio 2010 Web Express, it provides some new functionalities.   TFS support VS11 Express Beta for Web added TFS support which including all of the TFS client features, such as source control, team ex...

ASP.NET
Mar 20, 2012
0
0

Improving Launch Performance for Your Desktop Applications

Brandon Bray
Brandon Bray

Application performance is something we hear about all the time. It almost always falls into one of the top three issues when we aggregate all of the feedback channels from .NET developers. While performance has many characteristics, application startup time is something that everyone can easily relate to. With the .NET Framework 4.5 Beta and the “...

.NET
Mar 15, 2012
0
0

VS11 Beta JavaScript Feature comparison with VS2010sp1

Web Development Tools Microsoft
Web Development Tools Microsoft

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

ASP.NET
Mar 14, 2012
0
1

Is it ok to use nested Parallel.For loops?

Stephen Toub - MSFT
Stephen Toub - MSFT

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

.NET Parallel Programming
Mar 12, 2012
0
0

Visual Studio 11 Beta HTML/CSS editor features

Web Development Tools Microsoft
Web Development Tools Microsoft

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

ASP.NET
Mar 7, 2012
0
0

Optimizing the .NET Framework Deployment Experience for Users and Developers

Brandon Bray
Brandon Bray

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

.NET
Mar 6, 2012
0
0

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

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