Reputation: 1859
I am working on an extension for visual studio to update a project.
The situation is a follows:
I thought of the following approach:
In the application we have all the project stored that are on the TFS server. When I want to update a specific project I select the project from the database. Next I load this project from the TFS server and create a new checkout for this project. So far so good. The problem arise when I copy the files from the published folder to the new checkout. Files that are already registered in the workspace get marked as changed but the files that are new are not added.
The only solution I can think of is to add all the files through the TFS SDK. But this seems pretty heavy to me.
So I got a couple of questions:
Thanks!
Upvotes: 4
Views: 936
Reputation: 23157
Don't do a blind copy of the files. Instead, have your program iterate through them one by one.
Upvotes: 2