Gotchas: MSBuild Conditional Import Ignored by Visual Studio

Thursday, September 3rd, 2009

Here’s nasty little quirk of MSBuild and Visual Studio which took me some time to solve last night… I have a C# project file which has been modified to import a custom .targets file. This targets file in turn imports some settings (property and item groups) using the following ...

Gotchas: Getting C++ Projects Building on a CI Server

Friday, May 1st, 2009

The other day I added a VC++ project to my main solution file and all hell broke loose on the TeamCity CI server. Errors like this started appearing. D:\TeamCity\buildAgent\work\71a700fe606e0795\trunk\NBody.sln error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either ...

Gotchas: Debugging WPF Data Binding

Thursday, December 18th, 2008

I've been playing around with WPF data binding recently and was struggling a bit with how to debug it when things weren't working right. Translation: cursing a lot when everything was hawked and I couldn't figure out why. Suppose I have the following binding that doesn't work the way I expect. ...

A Combined Module Enumerator For The Prism Bootstrapper

Thursday, December 4th, 2008

I ran into the following issue with p&p's Composite WPF guidance (Prism). Prism allows you to configure your application with multiple modules. These can either be statically referenced or dynamically discovered at runtime In my scenario I have two assemblies each containing a module; assembly A and assembly B, containing ...

Composite Application Guidance for WPF with EntLib 4.1

Tuesday, November 18th, 2008

I've been working on an application that uses Composite Application Guidance for WPF (Prism) and wanted to upgrade to use Enterprise Library 4.1 rather than the 4.0 version that Prism originally shipped against. Turns out updating this is pretty straightforward (but not trivial)...