Tweaking the build target to use new MSBuild 4.0 features; should be more reliable