tfs2010

Fetching the comment history for a work item in TFS

旧时模样 提交于 2019-12-06 01:02:40
问题 In most defect trackers there is a comment history associated with a ticket/incident/issue/work item. I wish to get this same information from TFS via the SDK for a work item - ideally: Who created the comment. The text of the comment. Who last updated/edited the comment (if that's event possible in TFS?) I have determined that a WorkItem has a collection of revisions availabe via the "Revisions" property, and that you can loop through each revision - but a revision does not have a "History"

TFS: Query for builds containing a specific changeset

依然范特西╮ 提交于 2019-12-06 00:47:34
问题 I have a number of build definitions that get executed based upon a single branch in TFS (eg Main). I'd like to (somehow) query TFS to find all builds containing a specific changeset number that I supply, and return a list of string of the names of the builds that TFS contains. Any kind of app (VS extension, CLI app, winforms, whatever) will do. Note: this isn't a 'plz give me the code' request; I'm willing to hoof it and do serious work on this. Any pointers to documentation on how to query

Problems with long path in TFS Team Build when CreatePackageOnPublish is set to true.

时光怂恿深爱的人放手 提交于 2019-12-05 23:55:37
问题 We have a problem by build because of long path created by TFS Team Build when parameter CreatePackageOnPublish is set to true . In directory PackageTmp (see picture later) the package is stored, but I don't understand why this directory structure is necessary and how it can be customized. The problem is that the deployment or new TFS build generates error because of long path. I will be grateful for your help. Regards Anton Kalcik This is the (anonymised) tree structure created by TFS Team

TFS Merge: Cannot discard a changeset

纵饮孤独 提交于 2019-12-05 22:56:03
We have a changeset where the developer has checked in changes to both source and target branch, many changes including renames in both branches. The merge of the the changeset from source to target branch goes fine, but the changeset remains in the list of changesets to be merged. When I now try to merge the changeset again, it says "There are noe changes to merge.". And the changeset remains in the queue. We have tried to use the command line tool to discard the changeset like this: C:\src\project\sourceBranch>tf merge /discard /recursive /version:C8137~C8137 $/Project/sourceBranch $/

Language folders for Silverlight projects when building with Team Build

孤人 提交于 2019-12-05 22:25:27
I have a Silverlight 4 project in my solution. When I automate the compilation of the Silverlight project in Team Build, I get in my output folder a long list of folders that have the Silverlight translations in it. These folders are not present in a local build (compile from Visual Studio), and I don't want them since I am targeting only one language. I have not found a setting to specify to not get these folders, and even better specify the languages I want to support. Does anybody know how to get rid of these folders, without adding a task to the build to remove the folders. Open Windows

TFS permissions to create Team Projects in a specific collection

这一生的挚爱 提交于 2019-12-05 20:21:50
问题 We have several Collections in our TFS 2010 server. This server hosts all of our TFS related services. I'd like to allow a specific programmer to create Team Projects within his dedicated collection. He belongs to the collection's TFS administrators group. When he tries to create a new Team Project, it fails with a Reporting permissions error. I understand that he also needs Reporting services permissions to create the relevant Reporting objects for the new Team Project, but I don't want him

How to both package with msbuild and run tests on TFS 2010 using Continuous Integration

馋奶兔 提交于 2019-12-05 19:40:06
I am using TFS2010 and MSBuild to integrate a windows azure cloud solution to the CI. To create the required 2 files for deployment I added in the "MSBuild Arguments" the /t:Publish Here is the configuration I use in TFS to build the packages: Problem is : if I remove all arguments the tests are built correctly but no azure package is built as seen on the build results: Tho if I put the parameters the package is there but the test are not run : Is there a way to have both ? I had discussion about your problem with TFS Team and I was told that as of now with TFS2010 this functionality is not

How to Lock obsolete TeamProjects

前提是你 提交于 2019-12-05 16:59:43
As part of a maintenance, I was about to Lock several now-obsolete TeamProjects, by right-clicking on each one's root in Source Control Explorer ( $/TeamProject ) and selecting "Lock..". Once I was done, I tried to commit these changes, which was denied with the following message: By searching around I bumped into the following statement, made as part of this discussion: Locks are applied such that the user who places the lock can checkin/checkout files but noone else can until the lock is released. So as a more valid test you will need another user to attempt a check-in of a locked file - ie

VisualStudio SQL database project sqlcmdvars TFS deployment override custom File path?

▼魔方 西西 提交于 2019-12-05 16:55:47
I have an SQL database project in VisualStudio 2010 in source control with TFS 2010 with a few branches that each deploy to different servers depending on the configuration profile. Using a sqlcmdvars file with the configuration profile appended in the filename (Debug.sqlcmdvars, etc..) for each configuration profile lets me specify the unique file path for a particular deployment environment by use of the reserved names Path1 and Path2 for the mdf file and the log file. <?xml version="1.0" encoding="utf-8"?> <SqlCommandVariables xmlns="urn:Microsoft.VisualStudio.Data.Schema.Package.SqlCmdVars

C# Code to check whether the workspace exist on TFS

不羁的心 提交于 2019-12-05 16:34:25
I am trying to create a automation tool to get latest code from TFS. I need to check whether any workspace with same name exist on system. If exist get the workspace instance. Else create the workspace and mappings. I found that Microsoft.TeamFoundation.VersionControl.ClientVersionControlServer has method Workspace GetWorkspace(string workspaceName, string workspaceOwner); to get existing workspace. But this will throw exception if workspace not exist on the system. So please give me a code that checks the existence of workspace and mappings. At present i have the following code which i know