tfs2010

Resolve users group membership in AssignedTo on work-item-queries

老子叫甜甜 提交于 2019-12-02 11:19:33
I assign work-items to user-groups in TFS. Lets say, I have a task assigned to the group [Devlopers]. Now I want to setup the Team Query "My Tasks" so that every member of [Developers] will see the task. I tried the following operator/value-combinations in the query-editor (the square-brackets are added for visual reasons): [Assigned To] [In Group] [@Me] [Assigned To] [Contains] [@Me] [Assigned To] [=] [@Me] [Assigned To] [In] [@Me] What I really need is something like @MyGroups instead of @Me. How can one achieve this? If it isn't possible to this, what is the sence of Assign-To-Group in TFS?

Compiling builds that have Microsoft Excel in TFS

痴心易碎 提交于 2019-12-02 10:43:10
问题 I am trying to compile a project in VB.net 2010 that uses Microsoft Excel dll at some points. It works all fine when I compile from my computer, but when I use TFS to queue a new build, I get the error that Microsoft.Interop.Excel... are not defined. I installed Microsoft Office 2010 directly on the TFS server but I still get the same error. Are there any configuration I must perform for this to work? Edit: Typical error message you will see on a Build: Error BC30002: Type 'Excel.Worksheet'

How to disable checkbox “Enable multiple check-out” for new projects?

我们两清 提交于 2019-12-02 10:22:11
问题 I am using TFS 2010. When I created a new project in the Team Project Settings> Source Control checkbox "Enable multiple check-out" on by default. How to disable checkbox "Enable multiple check-out" for new projects? 回答1: You need to edit your Process Template. At first, download it locally by selecting in VS "Team" > "Team Project Collection Settings" > "Process Template Manager...", then click on your template & select Download. This will send all the files on you local PC. Now open the

TFS2010 - Logging inside custom build activity

元气小坏坏 提交于 2019-12-02 07:02:54
We have a custom build activity, which performs the execution of our build. We use a custom activity, because the compilers we use are very special and the system is quite old and we do not want to rewrite the whole thing so that it works with MSBuild. However, the repository is managed by TFS and the build shall be triggered by TFS. Inside the custom build activity, I would like to log the status. Currently, I'm doing this with this piece of C# code: private void LogMessage(String message, CodeActivityContext context) { BuildInformationRecord<BuildMessage> record = new BuildInformationRecord

Remove orphan identities in TFS 2010

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 06:34:10
问题 I am in the process of moving a TFS 2010 installation from one machine to another. I found that is possible remap identities using TFSConfig Identities /change command but I didn't find a way to remove orphan user identities that I don't need anymore. I know that probably I can leave them there, but I am fussy and I like keeping things in order. Do you have any idea how to safely remove unused identities? 回答1: Don't clean them up. They are inactive so think of them as tombstones. If you get

Automating Team Foundation Build configuration

好久不见. 提交于 2019-12-02 05:51:41
问题 I am currently searching for a way to configure a Team Foundation Build service + one build agent without having to use the configuration wizard. Is there a way to do this? Whether it be through command line (I haven't found any command line installation options for TFS Build), or through the API. Thanks! 回答1: To add to Pantelif: And there is a 3rd option, also unsupported: use the undocumented "/setup" commandline switch. And there is a 4th option, officially supported but still in beta: Use

How to disable checkbox “Enable multiple check-out” for new projects?

拜拜、爱过 提交于 2019-12-02 05:15:51
I am using TFS 2010. When I created a new project in the Team Project Settings> Source Control checkbox "Enable multiple check-out" on by default. How to disable checkbox "Enable multiple check-out" for new projects? You need to edit your Process Template. At first, download it locally by selecting in VS "Team" > "Team Project Collection Settings" > "Process Template Manager...", then click on your template & select Download. This will send all the files on you local PC. Now open the local file "..\VersionControl\VersionControl.xml" and change entry <exclusive_checkout required="false" /> into

How do I check-in my rolled back changeset+fixes to TFS after an emergency rollback

浪子不回头ぞ 提交于 2019-12-02 04:59:37
问题 we committed some code by accident to TFS using VS2013 which created let's say changeset 2. In order to fix this mistake we did a rollback of changeset 2 to the local machine We then committed the rollback of changeset 2 thus creating changeset 3 Now we wanted to get the code we originally mistakenly checked in (from step 1) on the local machine so we did "Get Specific Version" and selected changeset 2 so we have changeset 2 on the local machine we made the changes we wanted on the local

Creating a build process template which does nothing but copy all files to another directory

大城市里の小女人 提交于 2019-12-02 03:48:01
I would like to create a Build Definition inside TFS 2012 Express which will simply copy all files within my project source tree to another folder on my drive. Just to underline - I do not want the build output to go to another directory - I want the source files themselves to. The reason for this is I have IIS pointed at a specific folder, and I want the build to copy the latest asp and aspx files to the IIS hosted folder. I am not sure of the intricacies of doing this, I did find : http://toadcode.blogspot.co.uk/2008/06/copy-multiple-files-via-tfs-build.html articles like this but I simply

Calls to `Workspace.PendAdd` not adding items

拟墨画扇 提交于 2019-12-02 03:44:28
问题 I have the following function that is being called in a loop on two new projects to add to source control. Each iteration of the loop gets the source code, copies it to the folder, creates a tfs team project, creates a workspace for that project, and then tries to add the code to source control. static void Main(string[] args) { var tfsWorkItems = _<IWorkItems>(); var workItems = tfsWorkItems.GetProjectsToMigrate(); var tfs = _<ITfs>(); var logFilePath = new DirectoryInfo("C:\\log"); var