When you have a file in one of your projects under source control and link to it using the Add Link under the Add Existing Item command dialog from another project in the same solution. Try and remove the link and Vault will delete the file from the other project on disk, instead of just removing the file link in the project file.
Steps to reproduce:
- Open Visual Studio 2008.
- Create a new .NET Framework 3.5 project called ConsoleApplication1 and name the solution TestVaultLinkedFiles.
- Add a new Class Library project called ClassLibrary1 to the solution.
- Add the solution to Vault ($/TestVaultLinkedFiles).
- Select the ConsoleApplication1 project, select Project->Add Existing Item.
- Navigate to ..\ClassLibrary1 and select the file Class1.cs.
- Use the drop-down on the Add button to select Add As Link.
- Note that the ConsoleApplication1 project now has a linked project item with a little arrow over the icon.
- Check the pending changes info Vault..
- Select the Class1.cs file in the ConsoleApplication1 project and select Edit->Remove to remove the linked file from the project.
- Note that the Vault Pending Changes window now lists a Delete file change against the ClassLibrary1 project.
- Note that the file Class1.cs has been removed from the ClassLibrary1 folder on disk as well.