tfs2015

Download entire folder from Version Control via TFS 2015 RestFul Apis

流过昼夜 提交于 2019-12-02 10:39:30
问题 Is there a way to get the download url for an entire folder from TFS 2015 Version Control using the RestFul apis? I can get metadata about items via the /_apis//tfvc/items/ api, but no downloadUrl property is available. I can see the downloadUrl property for build artifacts via the /_apis//build/builds/{buildNumber}/artifacts api. I could download every file in the folder via the GET api for that item, but that could require a lot of requests. I am using api version 2.0. 回答1: There isn't any

How to hide quick add panel Backlogs Items using VSTS extension?

我只是一个虾纸丫 提交于 2019-12-02 10:10:15
问题 I want to make an VSTS extension that can hide the quick add panel backlog items when loading the page. quick add panel backlog items The extension is made to target TFS 2015 update 2. I have run this code but nothing happens. (action.html) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Action Sample</title> </head> <body> <script src="scripts/jquery-2.2.3.min.js"></script> <script src="scripts/VSS.SDK.min.js"></script> <script> VSS.init(); var menuContributionHandler =

TFSSecurity to change git branch permissions

旧巷老猫 提交于 2019-12-02 09:39:40
I am implementing the TFS Security commands to change a git master branch acess control permissions to DENY for contribute field. Below is the command I am using: /tfssecurity.exe /a+ GitRepositories repositories/[543473b8-6186-42b3-bdab-b22bc44cc8f8/] GenericContribute n:'"[Projectname]\TFSGroup'" DENY /collection:CollectionURL" I am using powershell 3.0 for this project and I get below error Error: The security namespace GitRepositories does not exist. Could someone help me with this? You missed a blank space in "Git Repositories" name space. Try following: tfssecurity.exe /a+ "Git

TFS Rest API check-in to Version Control

☆樱花仙子☆ 提交于 2019-12-02 06:54:27
问题 From a VSTS extension I need to be able to check-out, edit, and check-in (on-prem TFVC/TFS repo v2015.3) In the documentation https://www.visualstudio.com/en-us/docs/integrate/api/tfvc/overview it is not clear if there is an APi to do that MSFT implemented it for their own Web Access "Code" Editor use: https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/2216206-provide-check-in-check-out-functionality-through-t#{toggle_previous_statuses} So, there is a way to achieve

TFS Rest API check-in to Version Control

瘦欲@ 提交于 2019-12-02 06:44:52
From a VSTS extension I need to be able to check-out, edit, and check-in (on-prem TFVC/TFS repo v2015.3) In the documentation https://www.visualstudio.com/en-us/docs/integrate/api/tfvc/overview it is not clear if there is an APi to do that MSFT implemented it for their own Web Access "Code" Editor use: https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/2216206-provide-check-in-check-out-functionality-through-t# {toggle_previous_statuses} So, there is a way to achieve this. I`ve tried to reverse engineer how they did it per Browser Debugging, but the minified/bundled

How to hide quick add panel Backlogs Items using VSTS extension?

邮差的信 提交于 2019-12-02 04:05:37
I want to make an VSTS extension that can hide the quick add panel backlog items when loading the page. quick add panel backlog items The extension is made to target TFS 2015 update 2. I have run this code but nothing happens. (action.html) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Action Sample</title> </head> <body> <script src="scripts/jquery-2.2.3.min.js"></script> <script src="scripts/VSS.SDK.min.js"></script> <script> VSS.init(); var menuContributionHandler = (function () { "use strict"; return { execute: function (actionContext) { console.log("extension

Access levels configuration tab not visible in TFS 2015

佐手、 提交于 2019-12-02 03:53:58
We're trying to configure Access Levels for an on-premise TFS 2015 server as explained here . However the "Access levels" tab in Control Panel is not visible to our TFS Administrator. He has administration right for both the Team Collection and Team Project. We're not running TFS Express, so this should be available to us. This leaves us wondering, what are the requirements to be able to configure Access levels in TFS 2015? Is there something we are missing? To see the Access levels tab, you need to add the user to Team Foundation Administrators group If you don't see the Access levels tab,

TFS 2015 API remove agent from pool with PowerShell

隐身守侯 提交于 2019-12-02 02:22:13
I'm working on removing an agent from a pool temporarily, install new software on the buildserver the agent is on, test that it works, and then add the agent to the pool again. I would like to do that programmatically, either with PowerShell or if that isn't a possibility, then do it with C#. The problem is that I can't find any documentation that can assist me on doing this, either through the TFS REST API or through the tools that come with Visual Studio. So I'm specifically asking: How do I remove a named agent from a build pool and how do I add a named agent back into the build pool? I

TFS 2015 API remove agent from pool with PowerShell

孤者浪人 提交于 2019-12-02 02:01:20
问题 I'm working on removing an agent from a pool temporarily, install new software on the buildserver the agent is on, test that it works, and then add the agent to the pool again. I would like to do that programmatically, either with PowerShell or if that isn't a possibility, then do it with C#. The problem is that I can't find any documentation that can assist me on doing this, either through the TFS REST API or through the tools that come with Visual Studio. So I'm specifically asking: How do

Use $(SolutionName) in the MsBuild commandline parameters

☆樱花仙子☆ 提交于 2019-12-02 01:19:57
问题 In order to emulate the "PerProject" option in TFS 2013's XAML build in the new Build 2015 task based builds, I'd like to be able to pass the SolutionName to the msbuild commandline arguments without having to manually set it every time. I'd like to do something like: /p:OutputPath=$(Build.BinariesDirectory)\$(SolutionName)\ Where I'd like MsBuild to infer the $(SolutionName) parameter. But when passing this on the commandline, the new task runner will substitute the $(Build.BinariesDirectory