The new "VNext" build system has tasks to perform operations like MSBuild and Deploy things. One common task it has been missing out of box is the task to checkin items to tfs. The xaml builds had the provision to use tfs api's and write a c# code to perform this tasks, but dosen't seem straight forward with the powershell based "VNext" tasks. The TFS 2015 API does not have a straight way to do this as well. Is there a out of box solution to do this or any api call to checkin code during builds?
0
votes
Why do you want a build to modify source code? Builds should be verifying the software, not modifying it further.
– Daniel Mann
We have a different versioning system where we require to checkin the version files into tfs. We do not want it to be present physically on some drive. For this we checkin our versioning files into tfs.
– dhruv patel
Why don't you automatically increment the version rather than checking in? It'sreally not a good idea to checkin during a build.
– MrHinsh - Martin Hinshelwood
2 Answers
0
votes
The TFA API does have a Checkin
method in VersionControl
client namespace.
Here is an example - http://singhtechies.com/programatically-checkin-file-to-tfs-using-c/