Presented:Richard Hundhausen
In this video, Richard Hundhausen offers multiple ways to customize Team Build in Visual Studio.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
Know when it is returned as a principal consultant with excess in a Microsoft regional Director and Visual Studio team system MVP is looking at how to customize team build out of the box team builder team foundation told is designed cradle scripts at me those scenarios in a pretty new to multi a k a of the definition Wizard allows you to specify workspace solutions configuration types balloon drop locations in the tests of analysis to run if you have an little little typewritten through the wizard is a set of MS will build scripts to team foundation building uses with the MS build engine to run the votes and there are several scenarios that may require you to customize these Wizard generates scripts fortunately team build successful enables other scenarios as well here s some examples of master might want to have the optimism was deployed to specific location
Minute 1
The compilation is complete bubble for testing starts were we not require a specific build numbering system and override one of the default numbering systems include into traditional or a developer may want to sign his or her assemblies after the build process is finished over the wizard and generated a single type your unemployment customization at eventual team project open and open source control you can see BusinessObjects library solution containing some unit tests don t have time to walk through these products with you in this lesson but was just assume it is a class library and some associated unit test in Kabul and run the test together each night so we probably start with
Minute 2
Is under team builds degraded new team builds hyper definition using a wizard or is it ultimately will this be a nightly integration told plus unit tests and server which workspace would like to select solutions from rehab or a workspace chosen already for us in this demonstration of business objects library is the solution in a solution that contains to produce in the eight class unhurried hands of unit tests for the next and we have the option you re choosing the configuration on the platform of a believer release config for any CPU is fine in which machine would like to build solution on the local machine is five yes 2005 and will do to a folder
Minute 3
Singled and doubled over and drop it into a UNC share on the same computer code will drop is always good access their click on start run a type field specifies the brought in fact I foolishly should always best practice they should drop location is reachable when it will actually runs a credential running the team build service which is TFS a service by default when you write permissions and possibly full control permissions on Escher Schumer and choose run tests rigorous test was created global tests will check a box click next review the settings and click finish and know how to build and run through report a comeback to the script file her a moment was with Enron or nightly build your own settings
Minute 4
To its addition to see that it took about 30 seconds to run and we consider there were no errors if you scroll down a little report and conceded 12 Association says when the build and we can see the results of compilation into their UNIX SRAM three total tests ran all three past and who want to equip us and bring up the tricks file have a look at the test results themselves with an analysis of internal mission look at lines of code to test the screen were about customizing team go mostly to do closest we ll report down and return to source control because ladies team build scripts are rated actually printed store under source control owns good refreshment comes for Central
Minute 5
Owns four in the final hardcoded folder meaningful team don t have that this folder is a magic name and contains the list of build sites verbal definitions that we have listened over your team builds sociopolitical integration build a nightly build procedures and folders over here with the same names notices with great out because I don t yet haven t downloaded my workspace is going to the latest version of that and take a look at the contents in any customizing team will need to be very intimate with these three files have TFS build fraud is as contains settings and accessibility to the humans build scripts which will be making change this just a moment the RSD file responsible if you want to pass in any a variable definitions on the command line parameter to the team who runs you can specify those responses here this fall and for Congress workspace mapping file
Minute 6
Which allows you to specify which folds of the serene once actually downloaded your workspace when TiVo runs Keep in mind the fact is a few moments by default it checks out a dozens of objects on every folder and file team project see a really large team project with dozens of solutions and literally hundreds of projects files on your team built by default giving all that until workspace is the 500 MB of information and more just to give you a compile on one solution out of several soap workspace mapping axonal file a diffuse more research on this one and go check it that you are downloading worth mentioning for the bill so that they could change the toothless buildout projects like any files for controlling to check this out first number can double click it and opened up
Minute 7
You d think over your nightly build you right click and save Oakland or edits or something like that but you cannot actually check it out manually separately under source control and open it up and was the lock symbol off of the town beneath you can make changes and this is not really a true MS build script a lot of these things and here are two settings with the team foundation bill will pass and is filled when it probably used to seeing a must build script since the seashore project files in the VB project files in studio 2005 world that format this is a little different because you and your answers told questions the Wizard act passes and one extend this file typically would come down to the bottom and before the end of the projects closing tab was for him and he accessibility calls to a hospital now for example you might want to know
Minute 8
Is actually got some scripture to take one of these and want through an incision in the type this there are several targets of fire almost like a seawater that fire when the tingle runs the fullest of events is available on MSDN or several several of the IT numbers from the product and I while a team to works or guess is one of those targets of this one happens in at the appropriate point in time when the billed as a gift and downloads all the files from the server down to see drive fears of the initiative I ll have the default is to get latest witches were doing a nightly build organizational or continuous integration build a want to but if you re pushing a production version 1 you may want to label the code version 1 at any time go back and get
Minute 9
Code for one and to build a well I would recommend having a build out their home version 1 build and override a court get to go back and get that would have limited him to go source control Explorer comes to label everything in my venture works project right now horrendously blitz Beta one and this is Beta one code and documentation it is a quick operation is no pending change happens immediately return back here to my build site I cannot sell it a when the court get events or target fires instead of doing a get latest of scorn and get the version Beta one was the own form of the PL actually stands for label onto some other prefixes you should know about sea for change that you forget I you for a while work
Minute 10
Space and the latest is actually the default that the workflow that is to save your changes here and then check in the change about my nightly build chicken to change this file else have a comment here a change to get from the latest to label for a while always good to comment your chickens and now we run on a okay or nightly build is completed if students are going to be 35 seconds or so about the same as the last time and eventually go multiple log file your sex file you can see the work it fires up towards the top of the targets were the first ones in fire in fact he did do a get on the Beta one label
Minute 11
See customization you can do on your bills and people will want to murder plot builds for Fortune one version to version 3 etc appear one of products which is really had to go back and find an office in an rebuild and redeployed a previous version special for supporting multiple versions of the product will we customize is returned back here to the TF buildup crotch formally checked it out again and double click it to edit and will scroll down your bottom and I have another target in tax that will use it would really help if you spend some time and research in this field as human as most of the customizations of doing in here go directly back to MS build and understand the targets of the tasks property groups and interest homes
Minute 12
All together this next example woman actually defined a couple properties are little variables that say I want to copy some files once this file is a Beta one bits one copy from the solution root binaries release folder and everything in their talk to some destination and maybe were in a household of protest that he will use this code is that you copy the files from websites out to them IIS server somewhere so that you can edit them and used a seeing eye code runs served up by us in this case and a copy from sea drive to see drive you can easily change this destination for something as the Web server 11 of some share in populace against Jackson config files are numerous Web servers the contest amuses integrated portal test written
Minute 13
And properties files or so at our target after dropped old which is a great target to stand and allow you to remove an existing directory make a directory with the name test ready end and continue on on error true is something you can add so the half that saw only exists in shorts and a remake of a lawful logo when can you continue on to the next that in and don t worry so much about the fact in front of a directory consultant to really nice but you should probably use is continuing errors of what appropriate them if she there are some copy commands in a mess filled with fun xcopy so much friendlier obstacle to exec task here in the command specifically as xcopy apply to treat the target is a folder and whites not prompt me to overwrite files which should have new files are missing a copy from the source
Minute 14
To the target as a defined in these variables are so particle release and was within CVS check in and editing tasks to call be available in areas to test if you check that in the most for what I will do okay sort will is completed and if you look at the log file and control them to the very bottom which is where our after tropical target drones and you can see the soul tells us that skips the step to remove the directory doesn t exist and increase the directory and it runs the XCOPY so we got our difference of files here in a couple DLLs in a XML document in the PDB
Minute 15
For debugging if I go out here and have a look at this test ready folder because it is created and ready to go and tell the release team they can go get the important files this folder and work the permissions and keep just the people want to have access to that folder to an a sure year is what if you don t want hard code those folder names in the conduct of response file that you can set that up as a variable in and said it naturally so the number we ve had this property we just defined cold destination folder and copy it successfully was come back here to go and check out the response file and make a quick end to it a couple comments and resources we say when you run this was ruled to have fun specified property
Minute 16
He destination folder equals as a test ready will focus production of a sprawling save the file object to send the change test ready to rush for the coffin photos have close us down and will do one for mobile anything to the completed successfully whatever text file told at the bottom you can see here that we created in a folder production ready to copy the files are production ready to us that s a nice feature you re allowed to
Minute 17
Change those variables as properties asked for a response file in a one more layer of flexibility that so far military might have would be stable at workspace I this is also very useful to soul a problem with problem but just the factor by default these the sites will get every file and folder 13 projects at Microsoft have been the default position is better to get everything in and be safe but slow rather than pick and choose just what it thinks your solution might need to compile the money to do some tweaking in your mapping and different server items even cloaking some of these folders is from a team foundation filters like every other component team system was designed to be extensible and is working with the school scripts so understanding targets and tasks in a that must build file would use to work this and that we
Minute 18
Is a unlimited number of requirements in a future salon editor 2000 and a principal consultant with accessing a Microsoft regional Director and Visual Studio team system and you think you
Click here to go to original video page
Wednesday, July 9, 2008
Video: How Do I: Customize Team Build?
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment