index > Team Foundation Server - General > Help with my team build project

Help with my team build project


I setup a build using team build and it created and xml file called TFSBuild.proj. My solution has several web projects and several other projects to which my web projects refer...such as my data layer, my file handling layer, etc... When I run the build it puts all of the .dlls into one folder called "release" and all of the code it pulled out of the source repository into a folder called "source". I would like it if after the build I had all of the code and referenced .dll's in a useful places, with the proper projects, ready for deployment.

ok - lets say my first web project in my solution is called website, and it references several .dll's in the solution.

I guess I could copy the code I want from the source folder, because it's the latest version, but that doesn't have the needed referenced .dll's, so then I could go to the "release" folder and get the needed .dll's. But if I hard code the copy command, then what if the references change? How can I just get the .dll's I need into a folder called bin in the folder with the other web stuff I want to release? Also, I would like to just get certain files, that I would put on my web servers, not all of the project files and other things I don't need. Thanks for any help you can give!

Thanks

<

JennyMQuinn

When the Team Build runs, it creates 3 folders, Sources ( for the source code to build, BuildType (for the TeamBuild files) and Binaries (for the output dlls and support files). The Binaries folder is where all of the files that you need are placed. There is a subfolder in Binaries named for your configuration, usually Release. This folder contains all of your support assemblies. There is also a sub-folder in here called _PublishedWebSites which contains all of the output for your web projects. Between the Release and _PublishedWebSites folders, you should have everything you need to copy out to get your site to run.

To copy these files to another location, you can override the AfterCompile target. Here is a code snippet that will copy the files to the location in the Destination property. You will have to tweak it for your particular situation, but it will copy the DLLs from Release to Destination and copy all the files recursively from _PublishedWebSites\MyWebSite to Destination

   1:
Steve St.Jean

Steve,

Thanks so much for your help! This is very useful. One thing though...I have a release folder under the binaries folder, but it is a flat list of all the binaries. I wish I did have the _PublishedWebSites subdirectory, but alas, I have none. I do have "release" folders under the regular class libraries under source rather than under binaries, but these seem to only contain the .dll for that class, not all the dependencies, like I would have in the bin folder after a normal build.

Any idea why I would not have the "PublishedWebSites subdirectory that you mention?

Thqanks again!

Jenny

JennyMQuinn

Jenny,

I'm not sure why you don't have it although I can guess that it is because I am using the Web Application Project for my web services.  The Web Applicatoin project comes with an additional .targets file that the project file Imports.  That targets file must be the one that creates the _PublishedWebsites folder and copies all of the files to it.  Since WebSite projects don't have a project file, they can't benefit from this kind of "project file augmentation".

I'm curious, do you need to use Web Site projects or would Web App projects work for you?  We mode away from Web Site projects for our web services because we think they suck.  I hate not having a project file and having to use stupid .refresh files for my references.

So if you can get into Web App projects, your life will get easier and you'll be able to eradicate world hunger to boot!   (Ok, that world hunger part is bogus, but you get my drift)

- Steve




http://sstjean.blogspot.com
Steve St.Jean

Steve,

We chose to try the web site project because it's the 'new' way to do it, so we though this must be the better way :-> I'm not sure yet why...but we have not had too much trouble with it so far.

I discovered that my solution was set to compile as a .NET application (I think that's what it was set to-been a few days since I looked at this) even though I had web sites, which means I should have had the build set to compile in "Mixed Platform" mode. Also, there were some issues with the paths and source control, which changing the path to ./ seemed to fix. Read more about that here...

http://msdn.microsoft.com/vstudio/teamsystem/reference/technotes/team_build/build_asp_proj.aspx

Thanks for your help!

Jenny

JennyMQuinn
reply 5

You can use google to search for other answers

 

More Articles

Team Foundation Source Control Question
VS2005 Can't Connect to Team Foundation Server (RC)
"Rough Order of Magnitude" and Microsoft Project 2003
SqlException Error converting data type nvarchar to float when in...
Could not bind to SCC when load a project
Can't find some VSS features in new source control system
Workspace Root
TFS RTM: Error loading Microsoft.TeamFoundation.WorkItemTracking....
Multiple users for the same task
Bug or hard to find solution?
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Security Settings for client not on doma…
TFS works with local machine accounts bu…
Post build steps and TFS
"Object reference not set to an ins…
Connection to TFS only on HTTP
How to initialize DomainProjectPicker di…
Delete Custom Work Item Type
"In" operator in Work Item que…
Schema Validation of Notification Event …
mixed VSS/TFS source control deployment?
Errors in Team Build - TFS RC
Connection to VSTS from Report Services …
Permission denied when creating new team…
Customer Support Representatives using TFS
Team Foundation Server vs SubVersion

Hot Articles

Team system RC vesrion with Studio 2005 …
witexport.exe syntax
Custom Process Template Plugin
very basic question
how do you create a defect from the proj…
WI HTML Field Control and Hyperlinks
Re: 3 of 4 project alerts works
WorkItems with "dependencies"...
How to spawn Team Explorer
Creating New Process Template
Team Build & CrystalDecisions
TF30076 Server Name provided does not co…
Microsoft.TeamFoundation.Server assembly…
TF80070 Error in Microsoft Project
Search Work Items in VSTS

Recommend Articles

Deleting Source Control
Feature request: see history of line cha…
Running Tests in Team Build
Team Foundation Server MSSCCI Provider B…
How do you know if team foundation serve…
Warehouse not updated due to field delet…
mixed VSS/TFS source control deployment?
Creating New Process Template
My Work Items
How to delete a TS Project
modifying task template for existing pro…
Let the submitter close the issue only?
Closed versus Resolved
Source code control with documentation?
Team Build Suddenly stopped working: Sys…