Quantcast
Channel: Team Foundation Server - General forum
Viewing all articles
Browse latest Browse all 6687

Create & Access Changesets TFS SDK C#

$
0
0

Hi Guys!

I have made a quite a progress and posts in this Forum has really helped. But I have hit a road block again.

I have to create new folder & files inside Branch which I have managed to do. Now, my goal is to add some data in the files and TFS will create the Changesets for each change to these files. This also I managed. Later I want to access these changesets.

Three Issues.

1. Every time I create files I have to create a temporary Workspace,map it to local folder, create a file and then add & CheckIn. Now, is there an alternative to that? Is it possible to directly create a file with out going through the whole thing?

2. Every time I have to edit the file I have to repeat the same as above.Create Workspace, Map it locally, Download the file, Edit, CheckIn. Only then TFS creates a changeset. Can we somehow overcome that and directly edit the files in the TFS branch and still have changesets?

3. I can retrieve and compare the code in different changesets but for that too I have to download the file and compare them using code or a tool. Is there a way to directly retrieve and display all changesets and let the user decide which one to select??

My goal is to create branches. Inside the Branches I will create subfolders and store data in files. These files will store JSON object or XML. Content of the files will be some table related data. Whenever there are any changes to the file TFS will create changesets. These changesets will actually be a sort of history for the data in my files. Later I want to display all changesets and let user chose from the available changesets.

I know how to do all that but there is lot of overhead of Creating temp workspaces, mapping them, then changing , CheckIn and so on...

Is there a way I can resolve the Three Issues above? Or is there any other way to do this? Any Tool or API? How about the new REST API for TFS. Can it resolve my issues?

-Sam




Viewing all articles
Browse latest Browse all 6687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>