Bug in Enhanced Client when working with linked files

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
CraigNicholson
Posts: 47
Joined: Tue Mar 23, 2004 3:54 pm
Location: South Africa
Contact:

Bug in Enhanced Client when working with linked files

Post by CraigNicholson » Mon Apr 20, 2009 11:21 am

I've recently discovered an annoying bug in the Visual Studio 2008 Enhanced Client. Thankfully its not something I recommend our developers do, but its still a bug in my opinion.

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.
This is not how I believe this functionality should work. Please let me know if you need any more details on how to reproduce the bug.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Bug in Enhanced Client when working with linked files

Post by Beth » Mon Apr 20, 2009 3:00 pm

Thank you for reporting this. I've logged a bug.

F: 14278
Beth Kieler
SourceGear Technical Support

Post Reply