.NET Blog

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

Latest posts

Social Engineering
Apr 24, 2013
0
0

Social Engineering

Immo Landwerth
Immo Landwerth

When people in our industry use the term “social engineering” they are usually referring to security attacks. Politicians and lobbyists would mean something entirely different too. But that’s not what I will talk about here. Instead, I’ll talk about the kind of social life we’ve around in our team. Why am I using the term engineering then? Because I strongly believe that building a great team is a conscious effort. Wikipedia defines the term engineering as follows: Engineering is the application of scientific, economic, social, and practical knowledge, in order to design, build, and ...

XDT (XML Document Transform) released on codeplex.com
Apr 22, 2013
0
0

XDT (XML Document Transform) released on codeplex.com

Sayed Ibrahim Hashimi
Sayed Ibrahim Hashimi

In Visual Studio 2010 we introduced a simple and straight forward method of transforming web.config during publishing/packaging. This support is called XML Document Transform, aka XDT. It allows you to transform any XML file, not just web.config. To learn more about XDT check out the docs. Since we've released XDT there has been interest in re-using the transformation engine in other scenarios. To enable some of those scenarios we released XDT on NuGet. After that we started working on integrating XDT into NuGet and asked for some feedback from the community. In order to cover all the scenarios for NuGet users ...

The Defrag Tools Channel9 series on managed memory diagnostics
Apr 5, 2013
0
0

The Defrag Tools Channel9 series on managed memory diagnostics

maoni
maoni

Recently I did a few videos for the popular "Defrag Tools" series on Channel9. They are just talking about pretty basic things about doing managed memory investigations so I'd imagine for most of you it's something you already know. However, you can feel free to suggest things you'd like to see in the comments of these videos (or on this blog for that matter :-)). 2 have aired: https://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-33-CLR-GC-Part-1 https://channel9.msdn.com/Shows/Defrag-Tools/Defrag-Tools-34-CLR-GC-Part-2

Debugging ASP.NET Web API with Route Debugger
Apr 4, 2013
1
0

Debugging ASP.NET Web API with Route Debugger

Rick_Anderson
Rick_Anderson

Tutorial and Tool written by Troy Dai (Twitter @troy_dai) with assistance from Rick Anderson (Twitter @RickAndMSFT) Search for “asp.net web api routing” on stackoverflow, you’ll find many questions. How exactly does Web API routing work? Why doesn’t my route work? Why is this action not invoked? Often time it is difficult to debug route. To address this issue I wrote this tool named “ASP.NET Web API Route Debugger” trying to make Web API developers’ lives a bit easier. In this article I’ll first introduce stdebugger. Then I’ll introduce how routing works in Web Api. It is followed by three examples of how to...

.NET memory allocation profiling and Tasks
Apr 4, 2013
0
1

.NET memory allocation profiling and Tasks

Stephen Toub - MSFT
Stephen Toub - MSFT

The .NET Framework blog published this morning a guest post from yours truly on .NET Memory Allocation Profiling with Visual Studio 2012.  As you're trying to improve the performance, throughput, and memory usage of code that uses Tasks, the described profiler in Visual Studio can be a valuable tool in your tool belt (of course, the example I use in that post to highlight the profiler's capabilities is one that uses Task and async/await).  I hope you find the post helpful.

.NET Memory Allocation Profiling with Visual Studio 2012
Apr 4, 2013
0
0

.NET Memory Allocation Profiling with Visual Studio 2012

.NET Team
.NET Team

This post was written by Stephen Toub, a frequent contributor to the Parallel Programming in .NET blog. He shows us how Visual Studio 2012 and an attention to detail can help you discover unnecessary allocations in your app that can prevent it from achieving higher performance. Visual Studio 2012 has a wealth of valuable functionality, so much so that I periodically hear developers that already use Visual Studio asking for a feature the IDE already has and that they’ve just never discovered. Other times, I hear developers asking about a specific feature, thinking it’s meant for one purpose, not realizing it...

Tasks, Monads, and LINQ
Apr 3, 2013
4
1

Tasks, Monads, and LINQ

Stephen Toub - MSFT
Stephen Toub - MSFT

A few years back, Wes Dyer wrote a great post on monads, and more recently, Eric Lippert wrote a terrific blog series exploring monads and C#. In that series, Eric alluded to Task<TResult> several times, so I thought I’d share a few related thoughts on Task<TResult> and the async/await keywords.As both Wes and Eric highlight, a monad is a triple consisting of a type, a Unit function (often called Return), and a Bind function. If the type in question is Task<T>, what are its Unit and Bind functions? The Unit operator takes a T and “amplifies” it into an instance of the type: p...

Tutorial Series on Model Binding with ASP.NET Web Forms
Mar 28, 2013
0
0

Tutorial Series on Model Binding with ASP.NET Web Forms

Tom FitzMacken - MSFT
Tom FitzMacken - MSFT

I have written a tutorial series that shows how to use model binding with ASP.NET Web Forms. You might be familiar with the model binding concept from ASP.NET MVC, but with ASP.NET 4.5, model binding is now available in Web Forms applications. Model binding makes it very easy to create and maintain data-rich web pages. A lot of the manual steps of correlating elements with data properties are performed automatically. When you use model binding with dynamic data templates, you can quickly add or revise properties in your data model and those properties are correctly ren...

ASP.NET MVC Facebook Birthday App
Mar 25, 2013
0
0

ASP.NET MVC Facebook Birthday App

Rick_Anderson
Rick_Anderson

Tom Dykstra and I have published a really cool tutorial on creating a MVC FB birthday app. You can test the app out by clicking on the FB link below:https://apps.facebook.com/birthdayapp-mvc/The image below shows the birthday app.Yao Huang Lin  is the principal developer for the ASP.NET MVC Facebook library and templates and he also wrote the sample used in this tutorial (so you can be sure it’s using best practices.)The tutorial shows you how to: As always, we appreciate feedback. Follow me ( @RickAndMSFT )   on twitter where I have a no spam guarantee of quality tweets.