Click here to Skip to main content
15,888,190 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have mapped a tfs project to my local (c:\tfs\SolutionFolder) I have done some changes in my local in 2 files (c:\tfs\SolutionFolder\xyz.aspx.cs and web.config) I need to revert all my changes in these 2 files only without hampering the changes in other files by giving the path and to take the server versions of these 2 files.Is there any way?
Posted
Comments
virusstorm 14-May-15 13:52pm    
Yes, this is possible. In order for me to walk you through it, I need to know which edition of Visual Studio are you using.
Member 11688195 14-May-15 14:18pm    
i am using vs 2012 as of now.Pls suggest the solution asap.
Basically i am trying to undo my changes in some files and want to take the server version for those files.pls susggest.

1 solution

Open Visual Studio 2012 and click View -> Team Explorer. From there, click "Pending Changes". In the list, locate the file(s) you need to undo the changes to and right click on them and select "Undo". Click the button "Undo Changes".
 
Share this answer
 
Comments
Member 11688195 14-May-15 14:30pm    
i need to do it progammatically using c# from an extenal application
virusstorm 14-May-15 14:34pm    
Why do you need to do this programmatically? What exactly are trying to do?
Member 11688195 14-May-15 14:40pm    
i have mapped my solution to my local.and done some changes some files.Now i want to create one web application which will give me back the server version of some files (i will give the paths of those files) without hampering the rest
virusstorm 14-May-15 14:46pm    
I'm not sure I follow why you need to create a web application. If you have pending local changes and you need to undo them, you simply undo them. If you need to undo the changes because you need to revert back to the server version without loosing what you did, simply shelve the changes.

I think might be over complicating this.
Member 11688195 14-May-15 14:51pm    
bro,its the requirement.i already knew what u r saying.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900