Showing archive results for 2010

Oct 28, 2010
Post comments count0
Post likes count0

TPL Dataflow preview available for download

Stephen Toub - MSFT
Stephen Toub - MSFT

As mentioned here, the Visual Studio Async CTP is now available for download from https://msdn.com/vstudio/async.  Not only does this download add language support into C# and Visual Basic for writing asynchronous methods (in which you can easily “await” tasks), it also includes a new .NET library we lovingly refer to as “TPL...

.NET Parallel Programming
Oct 27, 2010
Post comments count0
Post likes count0

Language support for Tasks!

Stephen Toub - MSFT
Stephen Toub - MSFT

Today is a very exciting day for Parallel Extensions, and indeed for all developers using C# and Visual Basic and who are interested in writing more responsive and scalable applications. At the PDC this morning, Anders Hejlsberg just announced the Visual Studio Async CTP, which you can download immediately from the landing page at https://msdn.com/...

.NET Parallel Programming
Oct 26, 2010
Post comments count1
Post likes count1

ASP.NET Web Projects: web.debug.config & web.release.config

Web Development Tools Microsoft
Web Development Tools Microsoft

DIsclaimer: You may experience some in-consistent behavior using this technique. If so please let us know. I have heard a lot of questions and confusion regarding web.debug.config and web.release.config. For example here is just one question on StackOverflow. The question states: First let me explain, as I did to that question, the purpose of the ...

ASP.NET
Oct 21, 2010
Post comments count0
Post likes count0

New Feature? :: ThreadLocal.Values

Danny Shih
Danny Shih

We’ve been considering adding a Values property to System.Threading.ThreadLocal<T>.  Values would return a collection of all current values from all threads (e.g. what you’d get if you evaluated Value from each thread).  This would allow for easy aggregations, and in fact in our Parallel Extensions Extras we have a wrapp...

.NET Parallel Programming
Oct 15, 2010
Post comments count0
Post likes count0

FAQ :: StartNew() with TaskScheduler.FromCurrentSynchronizationContext() doesn’t work?

Danny Shih
Danny Shih

We’ve seen a number of folks write the following code to execute on the UI thread and get unexpected behavior. TaskScheduler uiScheduler = TaskScheduler.FromCurrentSynchronizationContext();Task uiTask = Task.Factory.StartNew(delegate{    // … Update UI component; BUG!}, uiScheduler);The issue is that the StartNew ca...

.NET Parallel Programming
Oct 7, 2010
Post comments count0
Post likes count0

Working with different versions of AjaxControlToolkit in Visual Studio 2010

Web Development Tools Microsoft
Web Development Tools Microsoft

  When working with different versions of AjaxControlToolkit, Visual Studio 2010 contains some interesting improvements compared to previous versions of Visual Studio. When adding a particular version of AjaxControlToolkit controls (or other similar third-party controls) to the toolbox using the Choose Toolbox Items dialog, we now show the ...

ASP.NET
Oct 7, 2010
Post comments count0
Post likes count0

Creating pre-completed Tasks

Danny Shih
Danny Shih

 We’ve been considering adding support for creating completed Tasks from an existing result.  Here’s a prototypical example of where this could be valuable. void Task<float> ComputeAsync(...) {     if (!resultIsCached)     {         return Task<floa...

.NET Parallel Programming
Sep 23, 2010
Post comments count0
Post likes count0

How to Create a Custom Item Template and Project Template

Web Development Tools Microsoft
Web Development Tools Microsoft

When you’re working on a web project, there are times you wish you could have captured all of the stuff you’re working on often and then re-use it later on, similar to code snippet. For example, if you work with JaveScript, HTML5 a lot, you would want to be able to create a new web project that already has a predefined set of jQuery lib...

ASP.NET
Sep 23, 2010
Post comments count0
Post likes count0

Win7 Mobile Development Tools

Web Development Tools Microsoft
Web Development Tools Microsoft

If you haven’t installed the Visual Studio Mobile tools for building Win7 applications I would highly recommend you do so now via one of the following links: The release notes can be found here: Release Notes Programming Resources: http://charlespetzold.com/phone/index.html Channel 9 Training: https://channel9.msdn.com/learn/courses/WP...

ASP.NET
Sep 20, 2010
Post comments count0
Post likes count0

Extending XML (web.config) Config transformation

Web Development Tools Microsoft
Web Development Tools Microsoft

Sayed recently posted a blog on extending XML (web.config) Config transformation.  If you haven’t read it already, you can find it here:

ASP.NET