-1

Is there any sort of way for auto-checking in the TFS files other than coding?

If no other solution is available can someone please suggest me the best C# code for doing it?

  • I do not think it's possible to do an automatic check-in in TFS because you need to tell when your code is correct to be committed. – Celso Lívero Mar 26 '18 at 11:44

1 Answers1

1

You can try to create a script/batch file with the Checkin command.

e.g.:

tf Checkin $source_dir /comment:"Publish new version details" /noprompt /force

Then create a Schedule task to run the batch file automatically.

You can also reference this thread to set the schedule task : Run a task every x-minutes with Windows Task Scheduler

Andy Li-MSFT
  • 28,712
  • 2
  • 33
  • 55