tfs2012

Check-in each project separately?

天涯浪子 提交于 2019-11-29 11:58:50
I have several projects hosted as separate TFS projects. When I want to check-in changes, all the changes of all projects sum up together and commit as one check-in. I want to handle the check-ins per project, so that the current check-in only commits the files of the current solution. Here is what the TFS Pending Changes page looks like: The red is "Project 1", the black is "Project 2", I don't want the black to be here at all. There are several options: You can create separate workspaces for each project and only map the directories that belong to said project, that way the changes will not

TFS 11 2012 API Questions : query capacity and days off

此生再无相见时 提交于 2019-11-29 10:54:24
I need to get several things done with the TFS API. Among those, I have to read the Resource planning information for the sprints of each Project to display in a WPF UI. Tagging along this guide , I now have the following method: private TfsTeamService _teamService; private ICommonStructureService4 _structureService; TeamSettingsConfigurationService _teamSettingsConfigurationService; public void GetUserIterationAssignments(IList<ProjectInfo> projects) { foreach (ProjectInfo project in projects) { Console.WriteLine(project.Name); TeamFoundationTeam team = _teamService.QueryTeams(project.Uri)

Copy TFS 2012 collection to another server with TFS 2015 Installed

馋奶兔 提交于 2019-11-29 08:52:47
We have an old server machine with TFS 2012 installed on it. It has the 'DefaultCollection' of project collection. We want to copy (not move, i.e. leaving the collection in place) the 'DefaultCollection' collection to another machine which has TFS 2015 installed. How can we do that please? Thanks, ashilon It depends a bit on how complicated your TFS installation is, but here are the steps for a simpler one server setup without Sharepoint: Detatch the collection from your current TFS 2012 using the Team Foundation Server Administration Console. This will copy the configuration into the

How to get all collections from TFS

淺唱寂寞╮ 提交于 2019-11-29 07:46:39
How to get the collections from TFS using TFS API Please refer here for more details. This is one of the best resources on TFS stuff. private TfsConfigurationServer configurationServer; configurationServer = TfsConfigurationServerFactory.GetConfigurationServer(uri); public IList<KeyValuePair<Guid, String>> GetCollections() { //ApplicationLogger.Log("Entered into GetCollections() : "); var collectionList = new List<KeyValuePair<Guid, String>>(); try { configurationServer.Authenticate(); ReadOnlyCollection<CatalogNode> collectionNodes = configurationServer.CatalogNode.QueryChildren( new[] {

Get Latest Version of Folder from TFS, using Powershell

痞子三分冷 提交于 2019-11-29 07:02:47
I am trying to " Get Latest Version " of a particular folder from TFS, using Powershell. I have installed the TFS Snappin, and have been using TFS Power Tools cmdlets in PowerShell (such as Get-TfsChildItem and Select-TfsItem etc) [ How do I set up TFS PowerShell Snapin ], and have gone through their documentation (which I didn't find explanatory enough!). Confused, on the exact cmdlet to use, when I am trying to get the latest version of an entire Folder structure from TFS, that is mapped to my local drive ( and not just a changeset or ChildItem ). Example : Tfs Path - $/APD-RepairSolutions

Rollback a changeset in tfs

泪湿孤枕 提交于 2019-11-29 00:52:44
Using visual studio 2012 and TFS 2012, I would like to rollback a changeset to the prior one. In TFS 2012, View the history of the thing you want to rollback. Select the changeset you want to roll back. Right click on the changset and choose "Rollback". Check that the pending changes are correct (the rollback command will revert the entire changeset not just the file you selected) Check in. In TFS 2010, you can call the tf rollback command from a visual studio command prompt, or you can install the TFS power tools and use the same process as above In TFS / Visual Studio 2012, you have a few

How to get rid of “The solution you are trying to open is bound to source control” message

∥☆過路亽.° 提交于 2019-11-28 21:05:48
问题 I have a Visual Studio solution files copied from a source controlled solution. I don't want it to be source controlled and when I open it I get the message: the solution you are trying to open is bound to source control I deleted the .vssscc files but still get the message. How can I get rid of it? Thanks. 回答1: You need to clean the solution file (.sln) by removing the following GlobalSection: GlobalSection(TeamFoundationVersionControl) = preSolution SccNumberOfProjects = 2

Why missing <SccProjectName> in project file cause “The project file is not bound to source control”

廉价感情. 提交于 2019-11-28 20:17:57
I had a very annoying problem, I have found a solution, but I would like to ask you why it behaves like that... I am using Visual Studio 2012 with TFS 2012. Everything was fine, but one day I have spotted a problem. When I have added a new project to my solution, then I have always obtaining this message every time I have reopened the solution: This project file ... is not bound to source control, but the solution contains source control binding information for it. Do you want... Whatever I have done, I still have this message. In the File->Source Control->Advanced->Change Source Control...'

TFS2012 build server not restoring NuGet packages from in-house repository

旧巷老猫 提交于 2019-11-28 19:38:52
I've set up an in-house NuGet repository (a shared folder on one of our servers), and have added it to the "Available Sources" list in the Visual Studio NuGet settings on my PC. I'm able to successfully install a package into my solution from this repository. However on the TFS server the build is failing because it can't restore this particular package (message: "Unable to find version 'xxx' of package 'xxx'"). The solution is configured for "enable NuGet package restore", which works fine for packages installed via nuget.org . It's just not restoring the package from our internal repository.

TFS msbuild args /p:DeployOnBuild=true doesn't seem to do anything

烈酒焚心 提交于 2019-11-28 18:26:42
I'm currently using TFS and the regular build process activity to build a solution. However, I'd like to be able to automate deployment so I can build and deploy remotely to a server in one step. On the MSBuild arguments I am trying to specify the deployment switch. My project is a windows service, but I understand it is still possible to deploy any binaries regardless of the project type (not being a web project). Current build parameters: /p:DeployOnBuild=True /p:UserName=user /p:Password=password When the build runs in TFS it succeeds, however I was expecting to see some attempt at