Here's a weird problem:

We are using VSS 2005 and development happens in VS 2010. I tried experimenting with the keyword expansion feature today in the VSS 2005, and came across something weird.

After adding a couple of keywords ($Author: $ and $History: $) I tried checking in the file. The file was checked in correctly, but the keyword wasn't expanded. Checked it out, confirmed the keyword spellings etc and checked it in again. Still no luck.

Just on a hunch I checked out the file again, and this time checked it in using the VSS explorer. Voila! The keyword expansion happens!!

This means when I check in the files from within Visual Studio, the keyword expansion feature does not work. The keyword expansion only works when files are checked in through the VSS Explorer.


Has anyone come across this problem? Is there a work around?

And please don't advise on a different versioning tool, I don't want to debate the VSS vs other versioning tools here.

.