tfvc

TFS: How can you Undo Checkout of Unmodified files in a batch file

南楼画角 提交于 2019-12-17 17:36:06
问题 We use a batch file to generate code, and it automatically checks out the generated files from Team Foundation Server (TFS) so that it can regenerate them. The majority of these files are not modified, but the generator does not know this ahead of time. The "tfs undo" command undoes the checkout, but prompts if some have been modified (which we don't want to do). We also do not want to check in the generated files right away. Is there a command (or series of commands) to undo checkout of all

What are the big differences between TFVC (TFS Version Control) and Git for source control when using Visual Studio 2013?

天大地大妈咪最大 提交于 2019-12-17 15:05:53
问题 There are tons of questions and answers about Git versus TFVC Source Control, but no current answers cover the integration of Git into Team Foundation Server/Service that I can find. I'm starting green pasture development using a wide variety of languages (C#, C++, PHP, Javascript, MySSQL) using Visual Studio 2013. In the future, there will be some iOS development. I'm very familiar with SVN, VSS and TFVC for source control. However, I have never used Git. I prefer TFS for process management

TFS Server checkin error - could not find file - Server Related and Command Line

北城以北 提交于 2019-12-14 01:18:09
问题 This relates to question, TFS checkin error - could not find file "When checking in my project I get the error: Could not find file 'C\blah blah blah'. I have a feeling this might be a file from an old project I deleted. I have tried deleting my TFS connection and workspaces. The Solution was: This will happen when TFS has some changes staged that no longer exist on the file system. For instance, if you add some files in Visual Studio (which adds them to the changes list), delete them

TFS 2015 build agent failing to sync TFVC

廉价感情. 提交于 2019-12-13 18:50:30
问题 For a specific project in my TFS 2015, a vNext build agent is unable to sync source code from the repository. Only message I can see in log file is: Starting: Get sources Syncing repository: RDW (TFVC) Workspace Name: ws_d565d474_34;Build\1b470f52-2a65-4b67-a68a-b8c32cebcad5 Done syncing repository RDW to version C283662 (workspace version -1) Note that "workspace version -1". If I check the work folder on my build agent server is empty (not even created). Still the workspace on TFS side is

TFS2018 why is shelveset name empty?

六月ゝ 毕业季﹏ 提交于 2019-12-13 04:11:40
问题 When queue-ing a build manually using TFS2018 the shelveset name is not showing the source branch name in all cases. Sometimes it is filled out sometimes not. Since I am picking up build variables for the source branch $(Build.SourceBranch) $(Build.SourceBranchName) They will be empty if the Shelveset name is empty. Is it possible to set the shelveset name default as the sourcebranch using the API when creating the build definition? Is there another build variable that I can use to get the

How do I get the solution and project names back in sync?

北城余情 提交于 2019-12-13 03:49:51
问题 I've created a SSRS report and checked it into TFS 2015. Later we had to do work on it, while leaving the original alone, so I branched it, creating a -Dev branch. I am working with a junior developer. She didn't understand that it was both necessary and sufficient to have the different solutions, representing the different branches, in different locations on her hard drive, to differentiate between the main branch and the dev branch. She did that, but then in the dev branch she proceeded to

How do I completely reset my TFS settings?

北城以北 提交于 2019-12-13 03:32:47
问题 For some context, you can see my other question here: How do I change the local path of a subfolder in TFS (not the whole workspace)? To sum up, it seems I've encountered some kind of TFS bug. I mapped a subfolder of a TFS project to a local path and I can't seem to sever that connection. I tried deleting the local folder from File Explorer. I even erased every VS-related folder I could find from my AppData, causing Visual Studio to forget all of its recent projects and solutions and

VSTS Rest API return specific item from Changeset API

懵懂的女人 提交于 2019-12-13 03:24:26
问题 I'm calling the REST API to return all of the files that are changed from a particular changeset, what I really want to do is just return the URL property of a specific item that has a known path. So what I have now is the Changeset API calling https://someplace.visualstudio.com/_apis/tfvc/changesets/19483/changes This return something like { "count": 10, "value": [ { "item": { "version": 19483, "size": 882, "hashValue": "ACWU0KSlO+jbsSJB5IwU4Q==", "path": "$/WaveDatabases/MasterData/Custom

Migrate TFVC repository from one VSTS instance to another VSTS instance

拟墨画扇 提交于 2019-12-13 00:20:11
问题 I need to move, or copy, a TFVC (Team Foundation Version Control) repository from one instance of VSTS (e.g.: source.visualstudio.com) to another instance of VSTS (e.g.: destination.visualstudio.com). I thought this would fairly straightforward, but I can only find information in regards to TFS (Team Foundation Server), not VSTS (Visual Studio Team Services). Or samples that convert to a Git repository, while I need to go from TFVC to TFVC. I am not interested in migrating Work Items at this

TFS 503 Service Unavailable when retrieving files

只谈情不闲聊 提交于 2019-12-12 20:00:29
问题 We have a TFS 2013 server which I use only for source control. I just got a new desktop PC with Windows 10 and Visual Studio 2017. I am able to connect successfully to TFS, and I can start to pull down code, but after the directory structure has been built locally and files start to come down, several are successful, then the rest fail with a 503 Service Unavailable , and the connection is lost, forcing me to reconnect. I can connect again a few seconds later, and keep trying, and it happens