Questions tagged [tfvc]

1

votes
2

answer
410

Views

How can I override the TFS 2018 build agent variable: Build.SourceVersion?

I am using TFS 2018 on premise with a TFVC project. When I create a new build using the “Empty process” template, the “Get sources” task is automatically added as the first step. This task always gets the latest sources by specifying the latest changeset number on the command line at run tim...
Robin
1

votes
1

answer
183

Views

TFVC to Git Mirroring (No Migration)

I am looking for a mirroring solution for TFVC and Git. I need to have developers continue using TFVC, but I want TFVC content to be mirrored (real-time preferably) to remote Git repositories. This is not a migration and I don't want developers to have to use client-side tools for this. This can b...
Cody Schilke
1

votes
2

answer
160

Views

What does /nodetect flag do, when using the tf status?

When interacting with TFS from the command line, the tf status command has an undocumented flag named /nodetect. What is it for? What does it do? My best guess is that it prevents it from trying to be smart about detecting changed files, but I can't seem to verify any change in behaviour when runnin...
cskwrd
1

votes
1

answer
59

Views

Managing TFS Items outside of VS

I recently started to work on a fairly large project that is based on HTML and Angular 5. Several people/contractors will be working on this code and will be using different tools. For example, I like to use VS Code, while our contractor loves WebStorm. My Company uses TFS 2015 to store and manage...
Todd Davis
1

votes
1

answer
136

Views

TFS 2015 can't see other user's pending changes on branch

MS Team Foundation Server 2015, with the native TFS SCM: On the main branch, every user can see pending changes from every other user. I branched off a branch from the main branch with several check-ins in the past already. I'm currently having locally modified files on that branch and see them as p...
Scrontch
1

votes
2

answer
54

Views

Creating TFS branches where they do not already exist

I have On premise TFS2017 with Update 1 (15.112.26307.0). Within my Project collection, I have a project that we shall call Project1; it is represented in source control as '$/Project1'. This project has no branches, the solution file is in the root ('$/Project1/Project1.sln') and all of the source...
Martin Robins
1

votes
1

answer
541

Views

Download file from VSTS with lightweight client (PowerShell)

I code PowerShell, and save it to my VSTS account. But when I code costumer specific Powershell script, I write them in my VS on my computer, then download them/the file from the customer server via web. Is there any lightweight client or PowerShell script to download the latest version of a given f...
nOrphf
1

votes
1

answer
25

Views

TFS Source control - Is there a way to undo a specific line in a file?

When viewing a diff of a file in TFS, is there a way to replace a line that was changed with the line that is currently in source control? Basically undoing only a specific line inside of a file. For example: In TortoiseSVN, I am able to do 'Revert changed lines back to the text shown in the left p...
dev.e.loper
1

votes
1

answer
147

Views

tf eula not getting any output TFVC, TEE-CLC and IntelliJ IDEA on Windows machine

I have installed TFS 2018, TFVC plugin for IntelliJ IDEA and Command Line Client TEE-CLC-14.134.0. I am not getting any king of output while entering the command tf eula, hence I am not able to create Repository for version control. Does anyone have any idea how to solve this issue or any workaround...
rpurant
1

votes
1

answer
53

Views

Get list of unique files for specefic changesets

Is there any way to get list of unique files for specefic changesets? using any front end techonology like jquery. For Example - I want to retrive all list of files with path for changesets no 2223, 2224, 2250 like - tfs\prod\072418\yellow.aspx tfs\prod\072418\bg.jpeg tfs\prod\072418\sent.xml tfs\pr...
Daniel Smith
1

votes
1

answer
638

Views

“No files matched the search pattern” in tfs build

I want to build my project from TFS Azure(VSTS). I have made one project which is under Asp.Net Core. I have made Build definition with Asp.Net Core Template and given the path for restore like **\*.csproj but I am not sure about this path or not? I have tried many options like **\admis.csproj and s...
Vicky Bhatt
1

votes
1

answer
36

Views

TFS 2018 Checkin policy plugin issue with finding notificationEventArgs.NotificationInfo.WorkItemInfo as null when check in from TFS web interface

We have a had a TFS checkin policy plugin since TFS 2013 today we are running on TFS 2018 and since the user begin to find out that it is possible to chechin via the TFS web interface we would to also let this be possible when we related a workitem to it. But the problem is that the notificationEven...
Peter B Dahl
1

votes
1

answer
113

Views

TFVC source control binding invalid when migrating to new workspace

I'm switching to a new machine and would like to keep my TF files as they are. Thus I simply copied the entire folder to the new machine's (same as the previous one - C:\TF), mapped it to the TF server's root, and attempted to open a solution from the file explorer, hoping that it would bind more or...
Platedslicer
1

votes
0

answer
47

Views

Why the application looking for wrong repository in VS Code?

In Visual studio online I have created project and assigned the version control TFVC. But vs code logging file shows it is looking for 'Getting repository information for a Git repository at' Git repository instead of TFVC. I have created the TFVC repository using Visual Studio IDE. Why the applicat...
Kumar19
1

votes
0

answer
97

Views

TFS on VSTS: `tf vc unshelve <shelvesetname>` fails silently not downloading changes

Preparing new build definition working with TFS version control on VSTS I encountered strange beahaviour: When doing a build from shelveset in log files I can see that sources from main repo are downloaded (and they are indeed) and later in logs there is information about unshelving changes from she...
GrayCat
1

votes
1

answer
511

Views

How to check out file in Visual studio code with TFVC?

I have TFS 2017 server which I integrated with my Visual studio code using visual studio team services plugin. I am able to login however when I edit any file and try to save, vs gives me error prompt. Failed to save 'app.component.html': File is write protected. Select 'Overwrite' to attempt to rem...
Zeus
1

votes
0

answer
17

Views

TFS includes more changes than expected when checking in

Sometimes Check In option is available in the Project context menu itself, sometimes you have to go to Source Control submenu to find Check In option. What is the difference? Sometimes when I check in code into TFS, I notice all other solutions that have not been checked in yet get included in the l...
joym8
1

votes
0

answer
108

Views

Release management does not support download of artifact type TfvcLabel in the current version

We are using TFS(Version 16.131.28106.2) to build and deploy the code. I want to give source label On every Success build and Label format configured as $(Build.SourceVersion). I am getting Label from build definition as, But, In Release definition, this gives me a warning message. Artifacts for the...
Darshana Patel
1

votes
1

answer
44

Views

VS 2017 - TFS source controlled projects keep getting converted automatically to Git source controlled projects

I have existing projects source controlled by TFS that I have done check-ins on, then when I do a check-in all of a sudden it’s source controlled by Git and it creates a local git repository for it and I can’t get back to my TFS source control. How do I get control of my project source control b...
Unconquered
1

votes
1

answer
121

Views

Teamcity fails to fetch files from Azure Devops

I am very new to the TeamCity and want to learn auto build and deploy applications from online TFS. My project has windows and web apps developed in .NET only. I have no code on my machine and directly using online TFS as source. VCS Root setting works fine and connection gets successful. In the Bu...
Abhi
1

votes
0

answer
20

Views

How to propagate a release-specific bug fix to other builds?

I was wondering what's the best way to propagate a release-specific bug fix to other builds in TFS? Suppose the minor bug fix made in 1.2.1 also needed to exist in 1.3.0, but could no longer 'go through' Main b/c it has been updated with 2.0.0 changes: Dev 2.0.0 Main Release 1.2.0 1.3.0 2.0.0 Build...
samis
1

votes
0

answer
42

Views

Is there a way to get back the changeset history of the deleted branch?

I'm accustomed with the gitflow approach and git-based repositories. In my current project we are using TFS with an in-house TFVC based repo and I'm struggling with reviewing the history off changes. What I've done: Branched from master to feature/SomeFeature. Done some work on feature/SomeFeature (...
Kamil Stadryniak
1

votes
1

answer
29

Views

TFS - Make 2 Existing Folders related branches

I am working with TFS 2012 and wondering if I can accomplish something easily. I have two folders with several sub folders ... in a previous SC they were branches of each other. Is there a way in TFS to make them have a 'relationship'? I've used the 'Convert to Branch' on both. When I try to 'M...
dblwizard
1

votes
1

answer
22

Views

How to set maximum file size for check-ins in TFS?

Is there a server-side setting for TFS to set the maximum file size that can be checked-in to TFS? I am talking about all files and not work item attachments.
Oliver Nilsen
1

votes
0

answer
12

Views

How to lock files with TFVC REST API?

I'm trying to create a C++ library that uses the TFVC REST API so that I can support TFS from within a program. I've been successful using rapidjson and chilkat to build and send requests for a lot of the functionality so far-- add, delete, rename, etc. My issue is that I cannot seem to apply any...
Gabe Adams
1

votes
1

answer
286

Views

TFS Build Gated Check-In - Need to Select from Multiple Build Definitions

I got two build definition that is mapped to some common folders. When I do check in it prompts me the selection box to pick up either of the build definition. It gives me the option. Can I change my build definition to select the default based on what is triggered and show it as the first option wi...
Tech Learner
1

votes
1

answer
343

Views

TFS Eclipse Plugin detects wrong files edited

Eclipse TFS Plugin says that a lot of files includes images (.png, vs..) have been edited although I have made no change to them when I open the 'detect local changes' tab. I understand the files in bin/ folder are supposed to have been edited but I don't understand the other files as I mentioned ab...
ondermerol
1

votes
1

answer
279

Views

How to ignore files in jspm_packages - .tfignore does not seem to work

I have a single page app with a really large jspm_packages folder, all of which I would like to get TFS to ignore. I have placed a .tfignore file in the jspm_packages directory. It has '.' as the file contents to ignore everything. However, it still tries to include them. I have 'Excluded' them, b...
Greg Gum
1

votes
2

answer
1.1k

Views

check-in files in a branch in tfs through powershell

I have a tfs collection with a couple of branches and I want to do a check in through powershell. I usually first connect to the collection through: Get-tfsserver -Name 'tfs:8080...'. But I can't specify the branch name there. How can i do this?
Emma Jones
1

votes
1

answer
369

Views

Can Renaming the Main Branch in TFVC Orphan Child Branches?

I'm currently using the Development and Release Branch Isolation strategy with TFS 2015. I've been asked to rename the Main branch. As I've learned from this posting (Rename TFS 2013 Branch), rename is really branch and delete. Is there a risk of orphaning the Development and Release branches, along...
Blanthor
1

votes
1

answer
41

Views

TFS Source Control allowed us to check-in a file that wasn't the latest version

We are using Team Foundation Source Control and one of our users didn't do a 'Get Latest Version' on a project we were working on. After the user made changes (to an outdated version), they were able to check-in their changes without any issue. This meant that any previous change that they didn't ha...
Lock
1

votes
1

answer
136

Views

Why in TFS I cannot apply a label on files listed in Changeset Details window?

As in subject: Go to 'Find Changeset' option. Find a changeset. Double-click on changeset to open Changeset Details window. It gives a list of all files that have been checked in within given changeset. Why I cannot apply a label on those files from that level where I have them all in one place? Esp...
bartekj81
1

votes
1

answer
44

Views

View git source control in Visual studio

Im using Visual Studio 2015 and want to view the server tree\ source control in my studio as I view it with TFVC. When I create a TFVC project I can see it in source control but not when creating a git project. Is it possible to have git source control in visual studio?
chen
1

votes
1

answer
313

Views

Team Foundation Server Check In Error

I am getting the following error when trying to check in my project; TF10123: The path '$/My Project/SourceCode/AdminView/bin/MicrosG�L��pNet.Identity.EntityFramework.dll' contains the character ''. Remove the '' and try again. Now the error is referencing another project in the source control...
Matthew Flynn
1

votes
1

answer
37

Views

See all users who have a specific file checked out

When I am in Source Control explorer for Visual Studio 2013, there is a 'User' column which will show which users have a specific file checked out. This works fine if one user has the file checked out. However, if multiple users have the file checked out then the User column for the file will read a...
jausel
1

votes
1

answer
109

Views

git-tf with separate repositories

I'm part of an organization that is unfortunately using TFS/TFVC for source control. My small team been tasked with doing a sort of 'proof of concept' run with git, but we have to be able to push our changes into TFS. Luckily, git-tf and git-tfs exist. However, our TFS repository is one monolithic r...
moneyt
1

votes
1

answer
378

Views

TFS vNext Builds - Gated-Check-in Triggers cease to trigger some time after initial definition

I've defined several Build Definitions using the TFS vNext build system. These include use of the Gated Check-In feature. Initially, when the builds are defined, check-ins that have files that fall within the path of any of the Include sections of the Gated Check-in filters cause the prompt for the...
CJBS
1

votes
1

answer
199

Views

Can we configure TFS to accept merges only from specific branches?

We're considering a 'functional branch' strategy with DEV, QA, and RELEASE branches. I see how to control check-ins from users, but is it possible to configure the release branch to only accept merges from the QA branch?
flipdoubt
1

votes
1

answer
322

Views

Edit without checkout (TFS)

Is there a way in TFS to edit files and then (maybe) merge them later without having to do a checkout? Basically edit then only touch source control when I decide to update to the server, not in advance. Or has 5 years of Mercurial and Git just led to me getting confused about how TFS works and what...
kpollock
1

votes
2

answer
3.7k

Views

How to clone a TFVC repository of VisualStudio.com using Visual Studio Code?

I installed Visual Studio Code and the extension of 'Visual Studio Team Services'. I pressed F1 and 'team: login' and got the following error message. (team) You must open a repository folder in order to use the Team Services extension. How to create a repository folder using VSC? There are a lot of...
ca9163d9

View additional questions