When you add or modify references in a Visual Studio project, you must make sure to explicitly save the Visual Studio project in order to write the changes to disk. You must do this before performing any version control operations.