2
votes

Is it possible to have non-project/non-solution-related files automatically bound to TFS source control?

I am using Visual Studio. I have created some folders under my solution folder to which I would like to add logs, scripts, etc. The files are created by code and put in the correct folder, but they are not added to source control unless I manually go to Source Control Explorer and manually click to "Add Items to Folder."

I am trying to keep these files separate from projects. In a sense, I am trying to use TFS like Dropbox, where it automatically adds new items to pending changes.

1

1 Answers

-1
votes

Try using a local workspace instead of a server workspace:

https://msdn.microsoft.com/en-us/library/bb892960.aspx

Specifically the "Why should I use a local workspace?" section refers to changes being picked up automatically when added or deleted outside of Visual Studio. Please be aware of the differences between local and server workspaces if you decided to switch as there are some trade-offs between them.

Once using a local workspace, any files added to folder should show up in the workspace's Excluded Changes area as "Detected: (x) add(s)".

enter image description here

If you click on this link and choose "Promoted" the changes are added.