TFS2010 - How do I checkin the result from one solution into another?
So I've got one solution that compiles to a C++ DLL I've got another solution that is a WPF app.
Both of these solutions live in the same TeamProject on our TFS server.
I want to automate the build process so that when the C++ solution builds on the server, if it's successful it automatically checks the result into the WPF solution.
开发者_JAVA百科Thanks in advance for the hep.
While I haven't worked my whole way through the solution to this the correct place to start is with something like - http://geekswithblogs.net/jakob/archive/2010/11/03/performing-checkins-in-tfs-2010-build.aspx
For a more comprehensive walktrhough on creating custom build templates: http://blogs.msdn.com/b/jimlamb/archive/2010/02/12/how-to-create-a-custom-workflow-activity-for-tfs-build-2010.aspx
Now I just need to figure out how to map the workspaces, setup the file outputs so that I can check the dlls back in, but the templates are now working.
One option is to setup TFS Dependency Replicator.
This example config will wait for MyBuildType to finish, then checkin /Release/MyAssembly.dll from the build output directory to $/Trunk/Dependencies/MyAssembly.dll:
<?xml version="1.0" encoding="utf-8" ?>
<Rules>
<Rule
BuildType="MyBuildType"
EventType="New"
Source="/Release/MyAssembly.dll"
Destination="$/Trunk/Dependencies/MyAssembly.dll" />
</Rules>
This is perfectly possible!
I don't know how many files you will have to change in the WPF solution, but the easiest way is to checkout and then checkin the relevant files using the appropriate TFS command line commands. There's an example in this post: Visual Studio Build Tasks - TFS Operations
A second option is to create your own custom build task which will do the checkout/checkin for you.
精彩评论