TFS API : Checkin only the creation of a directory
Is it possible (and how?) to checkin only the creation of a directory in TFS using the TFS API?
I'm using some source code to do it :
//Creating my directory
Directory.CreateDirectory(directoryForBranch);
//Adding my folder
var nb = workspace.PendAdd(directoryForBranch); //nb==0, no directory added :(
//Getting changes added
var changes = workspace.GetPendingChanges(); //changes is empty
and the directory is not added and checkin fail...
I wonder if that's possible because, when I use the same source code to add a file instead a directory, the file is well added.
Is there another way to do it?
PS : if there is method (or a way) in the TFS api which permit to create directly a folder in the tfs repository (without having to create it locally before), I even prefer ;)
Is it possible (and how?) to checkin only the creation of a directory in TFS using the TFS API?
I'm using some source code to do it :
//Creating my directory
Directory.CreateDirectory(directoryForBranch);
//Adding my folder
var nb = workspace.PendAdd(directoryForBranch); //nb==0, no directory added :(
//Getting changes added
var changes = workspace.GetPendingChanges(); //changes is empty
and the directory is not added and checkin fail...
I wonder if that's possible because, when I use the same source code to add a file instead a directory, the file is well added.
Is there another way to do it?
PS : if there is method (or a way) in the TFS api which permit to create directly a folder in the tfs repository (without having to create it locally before), I even prefer ;)