I wrote some codes for get latest version of selected project. When I run it, it works. But if I delete the folder and run it again, it says "all files up to date"
I solved this problem with using Visual Studio TFS source kontrol and Get Specific version. How can I implement in C# project with TFS API?
My Code:
WorkingFolder workfolder = new WorkingFolder(ServerFolder, LocalFolder);
workspace.CreateMapping(workfolder);
workspace.Get(VersionSpec.Latest, GetOptions.Overwrite);
Edit:
I add that code and check returned value "getStatus"
GetStatus getStatus = workspace.Get(VersionSpec.Latest, GetOptions.Overwrite);
if (getStatus.NoActionNeeded)
// create new workspace and use same codes in "My code"