team build from a specific (local) version

I have all my source files (in a specific changeset) checked out local and I want now to build this checked out version.
by doing a team build, I selected the workspace, where the version is, which i wanna to build. But after the build process, the build was made with the newest version (on the server) and not with the version (with the specific changeset) on my local drive, even if I selected my local workspace!
what's wrong? how can I do a team build from a specific version? is there a bug?
[509 byte] By [remo.waller] at [2007-12-16]
# 1
Hi Remo

Team Build by default always gets the latest version from the source control server and builds that on the build machine. Hence this is by design, if you want to customise the behavior to always sync a particular version then what you need to do is to customise the get task that we provide out of the box (which currenty syncs only the latest version) and plug that in in our build system.

Regarding the other issue that you chose your local workspace - I assume that by this you mean that you selected that workspace while creating a build type through the wizard? If yes, then let me clarify - when you choose a workspace in the wizard - the solutions are pulled out from the server mapping in that workspace and hence yes the sources will still be pulled out from the server itself which is normally recomended in the public build system.

You can completely skip the sync process where the sources are syncd from the server by editing TeamBuild.proj file and make sure that sources which are already available on the build machine are the ones which are built.

Please let me know if this isnt clear or you have any other issues

Thanks
- Khushboo

khushbooSharan at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 2
Remo - You might want to try a desktop build in case you want to build just your local copies. For this, you need to sync the teambuildtypes folder also and navigate to the teambuild.proj file in the particular build typef folder under teambuildtypes and just do a simple "msbuild teambuild.proj". This builds your local files on your local machine without doing any sync.

Let me know if this sounds useful.

- Anu

Anutthara at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 3
Anutthara,

Your solution applies assuming the value of the DefaultTargets attribute within the Project tag is never changed from the default of "DesktopBuild" so I would say a safer solution would be to execute "msbuild teambuild.proj /t:DesktopBuild"... then this triggers another question: Is "TeamBuild" passed to MSBuild in the form of a "/t" argument when executed by the Build Server (so that DefaulTargets is ignored)? if yes, when is the "EndToEndIteration" task used?

D.OmarVillarreal at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 4
Remo,

Is there a specific reason why you want it to be a Team Build? i.e. do you need results from your local (not checked-in) build to be published to Team Foundation Server (test results, code churn, Static Analysis, etc.)?

D.OmarVillarreal at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 5

No, the problem (why I asked this question) was, because I've got some shared libraries which are used from different solutions. These libraries should be included in each build and I want to store this libraries at a place where I can easy upgrade this libraries with newer ones.
see: http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=69765

is there an easy way how to manage this problem?
give an answer at the link above.

-remo

remo.waller at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 6
I replied thi to your other posting as well:

See if this thread helps:
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=71112

D.OmarVillarreal at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...

Visual Studio Team System

Site Classified