tfs2010

Show all changesets between two labels

回眸只為那壹抹淺笑 提交于 2019-11-28 13:41:35
In TFS2010 each build is associated with a label by the build server. Our SCM management wants to see all the changesets and related workitems between two labels. Mostly those labels are builds that have a build quality "Released". This way all changes between two delivered builds can be reported. How is this done in TFS 2010 ? I don't think you want to use the label, I think you want to use the date/time of the build(s). Labels are easily mutable and don't necessarily represent a point in time. Assuming you have the datetimes of the builds, you can use the TF.EXE command line to generate this

How to remove a specific ChangeSet in TFS 2010?

柔情痞子 提交于 2019-11-28 13:23:22
How to remove a specific changeset in tfs2010? I have changeset version numbers with 545, 544, 543,542. Now, I am looking to delete the particular changeset 543 only in tfs? You have to Rollback the changeset, you can't delete a changeset. ( Rollback Command ) In your case a simple Rollback command would be like this: TF rollback /changeset:C543 You cannot delete a changeset in TFS. Even if you could somehow, (I think you can run a sql query against the TFS database to do that) its not a good practice. If people start deleting changesets/history the whole purpose of version control will be

How do I get who broke the last build in TFS 2010

十年热恋 提交于 2019-11-28 13:18:52
问题 Hi Is there a way to query who broke the last build in TFS 2010. I know that it is possible to subscribe to the build failed event but I would like to query the TFS to get the last build and the state of the build and if it broke, who broke it. /Jimmy 回答1: The following code will get you the most recent build. This is TFS2008, but the call should work fine under TFS2010 as well. public static IBuildDetail GetMostRecentBuild(TeamFoundationServer tfs, string teamProject, string buildName) {

How to Grant Read-Only Access to All TFS Team Projects to a Group of Users?

做~自己de王妃 提交于 2019-11-28 12:40:11
I see from the answer to How to add Windows group as "Readers" to all projects in TFS 2010 collection? that this must be done manually for all existing projects. Is there a command-line tool that can be used to do this? I know about the TfsSecurity program, but my attempt to do this for a single team project didn't work. What I did for a single Team Project: I created "[DefaultCollection]\All Project Read-Only Users" as a collection-level group containing a single Active Directory group as a member. I then attempted to add read access to the project for that group: tfssecurity /collection:

How to get BuildNumber in .proj (MSBuild) using TFS server

痞子三分冷 提交于 2019-11-28 11:25:17
We use TFS 2010 with VS 2010 for PHP web projects. Actually we do not have any .proj or .sln file, so i have made my own to make builds, it looks like this: <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/> <ItemGroup> <ZipFiles Include="**\*.*"/> </ItemGroup> <Target Name="Zip" > <Zip Files="@(ZipFiles)" ZipFileName="$(OutDir)myzip.zip" /> </Target> <Target Name="Build" DependsOnTargets="Zip"> <Message Text="My

Where do I administer the email addresses of TFS users?

偶尔善良 提交于 2019-11-28 11:03:57
In my Team Foundation Server, I have a collection containing a Team Project. This Team Project has several contributors. The following lines of code get all contributors of that project: TfsTeamProjectCollection collection = new TfsTeamProjectCollection(new Uri("http://tfs:8080/tfs/CollectionName")); IGroupSecurityService groupSecurityService = collection.GetService<IGroupSecurityService>(); Identity contributors = groupSecurityService.ReadIdentity(SearchFactor.AccountName, "[ProjectName]\\Contributors", QueryMembership.Expanded); Identity[] members = groupSecurityService.ReadIdentities

Clearing special permissions from folders in a branch

血红的双手。 提交于 2019-11-28 10:24:54
We're a fairly large project with a single trunk branch. Most of it uses the default permissions, but a few folders have custom permissions - say, only "Builders" group is allowed to check-in. We want to allow people to create their own private branches out of trunk, where they can freely check-in and merge later (hopefully often). However, creating a branch, the special permissions are copied along with the folders, meaning that people can't freely check-in into their branch. Is there a way to clear special permissions from a branch, or a folder? Is there a way to do so automatically, so

How can I query work items and their linked changesets in TFS?

丶灬走出姿态 提交于 2019-11-28 09:55:45
In TFS 2010 I have work items with linked changesets. I can generate a query that reports the work items I'm looking for. Now I want to do a query of Work Items and Direct Links that includes all the changesets linked to these work items. In the query editor I can't find any means to specify a changeset as the linked-to item. Are work-items the only output possible from a query? An option is to use the TFS API like the following snippet. var projectCollection = new TfsTeamProjectCollection( new Uri("http://localhost:8080/tfs"), new UICredentialsProvider()); projectCollection

How to build a VS2010 MakeFile project (vcxproj) with TFS Build (No VS 2010)

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 09:47:58
I have a project that was building fine in VS 2008, and then we installed and started using TFS Build, and then we upgraded to TFS 2010. Everything was still fine and building correctly (after I implemented our new build process that made everything very nice with a single-click build initiation from any remote Visual Studio 2010 client). Visual Studio did not need to be installed on the Build Agent. I'm trying very hard ( very hard) not to install Visual Studio on the Build Agent because my understanding is that it's not necessary, and we're not licensed to install it on a non-development

How to pass TFS variable to a MSBuild task of the project [duplicate]

谁说胖子不能爱 提交于 2019-11-28 09:11:16
This question already has an answer here: How to get BuildNumber in .proj (MSBuild) using TFS server 1 answer I have a solution which is built on TFS server. This solution includes several projects which have custom MSBuild tasks. Theses tasks actually create some zip archives. I need to extract somehow the $(Rev) macros from the TFS build and pass it to the tasks. I tried to use MSBuildArguments in the process tab of the build definition and it works when I set a simple string value like: /p:Version="5" but it doesn't work with the macros: /p:Version="$(Rev:r)" do you have any ideas? Edit: I