tfs2013

How do I get list of all users in TFS 2013

北城余情 提交于 2019-12-06 05:34:09
问题 I am using Team Foundation Server (TFS) 2013 and Visual studio 2012. I need a list of all the user in TFS. Is there any way to get all the users in TFS using C#? 回答1: Get the users list from TFS 2010, you can try use the TFS API, please refer to the following code snippet: TfsTeamProjectCollection tfs = new TfsTeamProjectCollection(new Uri("url")); tfs.EnsureAuthenticated(); IGroupSecurityService gss = tfs.GetService<IGroupSecurityService>(); Identity SIDS = gss.ReadIdentity(SearchFactor

VisualStudioOnline NuGet Restore now built in?

怎甘沉沦 提交于 2019-12-06 05:08:43
Is the Host Controller on Visual Studio Online now automatically restoring NuGet package before calling MSBuild? Previously I had to manually execute the following: nuget.exe restore MySolution.sln Now, when creating a new build in a new project, I noticed that I didn't need to do this. When looking at the build logs, I see this: This was a change in TFS 2013 Update 2 and is reflected in VS, TFS, and VSO... 来源: https://stackoverflow.com/questions/30037083/visualstudioonline-nuget-restore-now-built-in

Migrate TFS2010 to TFS2013 on new hardware keeping existing TFS2010 installation in place

一个人想着一个人 提交于 2019-12-06 04:09:05
We need to move our current TFS2010 installation to a new TFS2013 box but would like to have a testing period in which both instances are live before eventually sunsetting the TFS2010 instance. The TFS2013 instance would be used for testing only for the first few weeks. Just prior to sunsetting we would again migrate the TFS 2010 data again to the TFS2013 instance to get the most recent changes. The TFS2010 cannot be upgraded in place to TFS 2013 as its on 32 bit OS and my preference would be to remain conservative and keep the current production TFS2010 instance untouched during the testing

Team explorer default resolve in VS2013

喜欢而已 提交于 2019-12-06 00:46:38
问题 I am getting annoyed by having to change Resolve to Associate in Team Explorer Is there a way to set it to Associate by default? 回答1: For visual studio 2013 this fixes the issue [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\TeamFoundation\SourceControl\Behavior] "ResolveAsDefaultCheckinAction"="False" 回答2: And now available in the settings UI in Visual Studio 2015: https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/3418758-in-the-team-explorer-change-default

TFS 2013 (Update 2) Team Alerts not sending emails

孤街浪徒 提交于 2019-12-05 21:22:09
问题 I've followed the discussion here and I do have a similar case right after I applied Update-2 to TFS 2013 (Update-1) . NOTE: Everything used to work fine prior the upgrade. Personal alerts DO work, so it is not an obvious SMTP server error. Team alerts DO NOT work. TFS 2013 IS CONNECTED to Active Directory. All users have email addresses. No errors whatsoever in event viewer. I would appreciate the help. Thanks. 回答1: I think I figured out what is happening. It all boils down to this: Teams

How to set 'Assigned to' in TFS Work item through code?

帅比萌擦擦* 提交于 2019-12-05 21:07:24
I am trying to create a workitem through code. Currently I am using the following code to set Assigned to. wi.Fields["System.AssignedTo"].Value = "TfsUser display name"; Currently I am setting the TFS user display name. I have following doubts. Is Display name in TFS is unique? If not how to set a unique name like account name as assigned to? Display new is the only value that you can use to at this field in a work item. You can query the user identity system and retrieve the display name from TFS for the user that you want. Mihnea What about newWorkItem.Fields[CoreField.AssignedTo].Value =

TFS 2013: How to get changeset comments into a text file?

寵の児 提交于 2019-12-05 21:06:50
I'd like to get all changeset comments into a simple text file (to generate a changelog automatically). I tried doing this by querying TFS tables in SQL, but it's an undocumented black box... I read one post to run something like this: tf history $/ -r I got the latest TFS 2013 power tools, but that includes "tfpt" instead of "tf". "tfpt searchcs" opens a gui even if given command line arguments. Does anyone know how to accomplish what I'm requesting? EDIT: I was referring to this How do I find and view a TFS changeset by comment text? , and the accepted answer states With the Power Tools

Check-ins to TFS2013 source control triggers CI build associated with separate TFS Git Repository

空扰寡人 提交于 2019-12-05 20:46:43
问题 I have a TFS 2013 server with several TFS team project collections and developers working happily against them. The project collections have a set of TFS builds associated, including relevant CI builds which trigger on each check-in, or in some cases, rolling (accumulated) check-ins. This process works flawlessly and has been the way of working for several years. Recently, we've introduced a Git repository into the mix which also sits on our TFS 2013 server and appears as a node that I can

TFS 2013 default template run powershell script and log output

浪子不回头ぞ 提交于 2019-12-05 20:20:38
问题 running a powershell script from within a build process has become really really straight forward with VS 2013. Unfortunately no write-host commands are being logged to the tfs build log. So after a build completed I cannot look into the log file and see what the powershell shell script actually did. The log file only says: Run optional script after MSBuild 00:03 Run optional script before Test Runner 00:00 Run VS Test Runner 00:00 Run optional script after Test Runner 00:00 ... The

How to get TFS to ignore all folders with a certain name

坚强是说给别人听的谎言 提交于 2019-12-05 18:22:14
问题 Starting with Visual Studio 2015 all solutions create a hidden ".vs" folder with various things under it like applicationhost.config, .suo files, etc... For informational purposes I'm running TFS 2013 update 4 and I'm not in control of the system so I have no access to upgrade the system. I know I could go to every solution folder and add a .tfsignore file there with ".vs*" or something similar to ignore the folder but what I'm looking for is how to add a .tfsignore at the root that will