Locked Visual Studio 2008 Deleted My File

  • Wednesday, August 01, 2012 9:50 PM
     
     

    I was working on a web application in Visual Studio and my project controlled using svn anhksvn plugin.  After making some changes to a file I had been working on it asked me where to save the changes.  This seemed like an error because it should have know.  When I closed my Visual Studio and reopened my project the file was gone.  Not in my working copy or temp directory.

    Anyway to potentially restore this file.  I have not checked it in since this morning so I will lose hours of work.  This is ridiculous.

All Replies

  • Thursday, August 02, 2012 2:38 AM
    Moderator
     
     

    Unfortunately, here is for Visual Source Safe, VSS, not for SVN. I recommend you to post it on the SVN forum: http://www.svnforum.org/forum.php

    Based on my experience, it asks you to save the changes, then you should save it and commit it to the server side. But for Web Application, what file you modified, and do you commit the project or solution file, because these two files will be modifed if we add or remove some files in the proejct; These two files should be checked out and changed then should be committed to save the files changes.

    "Anyway to potentially restore this file. I have not checked it in since this morning so I will lose hours of work. This is ridiculous."

    Seems you have updated the local file, and lose the changes. Unfortunately, as far as I know, SVN and mostly version control tools do not backup the changes in local or temp folder.


    Bob Bao [MSFT]
    MSDN Community Support | Feedback to us

  • Thursday, August 02, 2012 4:10 AM
     
     
    This is not a Subversion issue.  I was working on my working copy of a javascript file and for some reason Visual Studio deleted it from the system.  Any thoughts on why it would do that.  I had to revert back to latest checked in version of the file to restore it.
  • Friday, August 03, 2012 5:52 AM
    Moderator
     
     

    Which folder you store the JS files, did you commit them after modifying them? If you work with anhksvn in VS, I suggest to open the Pending Change panel, and can view the any changes which is not committed to the server.

    Since VS do not more actions with source control tool, I think that you should check the plug-in setting, and check the file attributes. It should not a Subversion issue, but still out of this forum scope, the SVN tool work with VS. I will try to help you on it, but I cannot to test and say more about this Anhksvn plug-in and VS. 

    Do one testing, a simple ASP.Net application in VS and my owned SVN server, work with Anhksvn, add one JS file and modify it, commit the solution and project files both, then close and open it again to debug, that works fine.


    Bob Bao [MSFT]
    MSDN Community Support | Feedback to us