VS2010 Caching MSBuild properties

This really bit me in the arse today and wasted about 2 hours of my time so I thought I’d better blog about it!

I was splitting out the Properties required for a WixProject today and could not work out why the changes to my imported proj file were not being imported.

It turns out that VS2010 is really helpful when it comes to this and will cache the properties the first time they are loaded. Unfortunately it looks like the only way to get around this “feature” is to restart visual studio or use the msbuild commandline to build your project.

Joyness!