tfs

Modify CreationDate for TFS Changeset

自作多情 提交于 2020-01-07 05:05:10
问题 I'm currently creating a migration tool from one version control system to TFS and am using the Microsoft.TeamFoundation.Client assembly and have run into a problem. I am able to mimic the changes for each Changeset , but the CreationDate property is automatically generated by the CheckIn method as shown below: var changeSetId = workspace.CheckIn(pendingChanges, userName, comment, note, null, null); I am then able to load the Changeset object by ID that was returned by the CheckIn method: var

Registering a DLL from a TFS Build using a CodeActivity

爱⌒轻易说出口 提交于 2020-01-07 04:22:26
问题 I'm attempting to create a CodeActivity object that will register a DLL on a remote system during a TFS build. I am successfully impersonating my own user account, which has administrator rights to my machine. (I am trying to register the DLLs on my machine for now.) Note that all the attempts have worked if I run the workflow locally, but not from the build server. Also, if I manually run regsvr32, the DLL will register and unregister correctly. This is the highly stripped-down code I'm

Can a TFS backup be restored to a machine with different NETBIOS name?

时光怂恿深爱的人放手 提交于 2020-01-07 04:19:08
问题 I'm doing both a hardware and a domain migration, as well as upgrading my TFS instance from 2015.3 to 2017.1. I first discussed this project (and received some VERY helpful suggestions) here. Here’s the infrastructure I’ve got right now: Hostname Operating System SERVER1 Hyper-V Host 2012 r2 SERVER2 Server Essentials 2012 R2 SERVER3 Server 2012 R2 (TFS 2015.3) DB Windows 10 (SQL 2014) ...and here’s what’s planned: Hostname Operating System SERVER1 Hyper-V Host 2016 SERVER2 Server Essentials

How to prevent TFS from deleting shelvesets that were checked in via a queued build?

不想你离开。 提交于 2020-01-07 02:56:06
问题 Checking in shelvesets is a nice feature of the build system in TFS, but the shelveset is deleted after the build finishes. Is there a way to change this behavior so that the shelveset is preserved? I use the build+check in shelveset feature all the time to check in code from teammates, but sometimes I don't want the original shelveset to be deleted by TFS. In some situations, this can cause problems, like when the shelveset is associated with a code review work item. In that case, all

TFS Git Pull Request - Merge failed (Why?)

↘锁芯ラ 提交于 2020-01-07 02:52:12
问题 We are using TFS Git to create and merge pull requests. This is working fine for existing users, but when we add new users in AD (copying the exact same rights as existing users), the pull requests from the new users get an error (merge failed). Access to TFS is presumably granted by adding the user to the project team - no users seem to have any additional access rights that we can find. We have tried with multiple new users with different names (everything else is the same as existing users

Get TFS code review comments report given for files

只愿长相守 提交于 2020-01-07 02:38:20
问题 We used TFS query option to get code review comments report, But we are not able to get TFS code review comments report given for files. It is possible to get report by TFS query option / TFS REST API. Many thanks in advance. 回答1: Neither Work item query nor rest API is able to retrieve code review comments for now. However you can achieve your goal by using TFS API . Specifically the comments are accessible via the DiscussionThread class. Just need to query discussions using

Clear Git repository

一笑奈何 提交于 2020-01-07 02:37:10
问题 I've to transfert a TFS server to a GIT(Bitbucket) server. We are currently using git-tfs to do it, but we are doing some tests before migrating(like configuring jenkins, checkin that everything is correctly transfered). The issue is that now it seems I cannot run the git push command because I've the repository that is already filled with a lot of stuff from the previous run. Is there a way to "reset" the repository(like if I've never done any commit) ? Without deleting it? I've found this:

Clear Git repository

落爺英雄遲暮 提交于 2020-01-07 02:37:05
问题 I've to transfert a TFS server to a GIT(Bitbucket) server. We are currently using git-tfs to do it, but we are doing some tests before migrating(like configuring jenkins, checkin that everything is correctly transfered). The issue is that now it seems I cannot run the git push command because I've the repository that is already filled with a lot of stuff from the previous run. Is there a way to "reset" the repository(like if I've never done any commit) ? Without deleting it? I've found this:

TFS user cannot set permission for create tag for other users

依然范特西╮ 提交于 2020-01-06 20:17:30
问题 I have some users who are members of a group I have created. The group has most permissions enabled (set to Allow) including both "Create tag definition" and "Edit project-level information". The idea was to put certain users in a group that has permission to administer certain aspects of a project without adding them to the built in Project Administrator group. However although these users can add users and groups and do MOST things they cannot set the "Create tag definitions" for users in

Cruise control to Visual Studio Online, TF30063: You are not authorized

删除回忆录丶 提交于 2020-01-06 19:40:36
问题 I am trying to configure Cruise control 1.8.5 to connect to Visual Studio Online to get the source to build and run tests, however whatever I do I always get the error 'TF30063: You are not authorized' I have copied over tf.exe and required DLLs to the build machine as per one of the answers here (I would rather not install VS2013 on the build machine if possible, this is just a proof of concept at this point). I have enabled alternative credentials as per here This is part of the cc.net