RecoverableException for .NET Framework Solutions

Do you remember the good ol’ days before the ApplicationException class in the .NET Framework became “persona non grata”? I sure do. If you were to look at .NET code that I wrote years ago, you’d probably see ApplicationException being used all over the place. After all, this seemed like a great way to differentiate…

0

ProcDump – An Easier Way to Create a Mini-Dump

In a previous post, I mentioned an issue I’ve been having with Expression Web 4 crashing on me. In that post, I mentioned a few ways that you can create a mini-dump for a process (e.g. with Visual Studio, WinDbg, or ADPlus). A couple of weeks ago, one of the developers on the Expression Web…

0

C++ Compiler in Visual Studio 2010 Must Target .NET Framework 4

Another “hiccup” this week after upgrading my Team Foundation Server (TFS) 2008 environment to TFS 2010… This morning I discovered that when you upgrade a managed C++ project from Visual Studio 2008 to Visual Studio 2010, the project is updated automatically to target .NET Framework 4. Unlike most other project types, you can’t just quickly…

0

Suppress CS1607 Warning for TFS 2010 Builds

Here’s another issue I encountered when upgrading my Team Foundation Server (TFS) 2008 environment to TFS 2010… While it’s generally a good assumption that a solution that builds without error in Visual Studio 2008 (and on a TFS 2008 build server) will build without error after updating the solution to Visual Studio 2010, this isn’t…

0

Updated Path to tf.exe for TFS 2010 Builds

After upgrading my Team Foundation Server (TFS) 2008 environment to TFS 2010, I found that I needed to tweak my TfsBuild.proj file in order to successfully build on my new TFS 2010 build server. In a previous post, I detailed the process that I recommend for incrementing the assembly version with each build, in which…

5

Test Projects in Visual Studio 2010 Must Target .NET Framework 4

Last week I installed Visual Studio 2010 on my primary desktop. This morning, I opened my Fabrikam.Demo solution in the new version of Visual Studio, but chose not to upgrade the target framework when prompted by Visual Studio during the solution upgrade. In other words, I chose to leave the Target framework project setting set…

5

Leveraging the Power of Typed DataSets, IEnumerable<>, and LINQ

In my previous post, I extolled my love of typed DataSets in .NET because they are not only quick to design and update, but also very easy to understand. Essentially, if you can read an entity-relationship model (à la ERwin or a Visio database diagram) — which I suspect nearly all developers can — then…

0

Still Crazy (About Typed DataSets) After All These Years

First off, my apologies to Paul Simon regarding the title of this blog post — but I simply couldn’t resist 😉 When architecting and building solutions for customers, I tend to make heavy use of typed DataSets. I believe I used them on my very first .NET project almost ten years ago, because I still…

5

Test-Driven Development (TDD) in the Real World, Part 3 (a.k.a. the EncryptionService)

In my previous post, I provided a walkthrough of Test-Driven Development (TDD), based on a very simple scenario (truncating a string to a specific number of characters). In this post, I’ll provide another example using a more complex scenario. Suppose that we are developing a Web application and we need to encrypt some sensitive data,…

0

Test Driven Development (TDD) in the Real World, Part 2

In part 1 of this post, I provided my high-level thoughts on doing Test Driven Development (TDD) in the real world, but I didn’t get around to walking through an actual sample. To start off simple (but still real world), let’s imagine we have a scenario where we need to truncate a string to a…

7