tfs

Is the TFS REST API that compilcated when using it with stored queries?

半腔热情 提交于 2020-06-28 06:45:06
问题 It is mentioned here: Using the TFS REST API to get all work items in an iteration and I am already working with the VS docs at https://www.visualstudio.com/en-us/docs/integrate/api/wit/queries#get-a-query-or-folder We try to generate a change log text file based on a stored query on the TFS server. Prior to the REST API we were using the VS 2012/2013 TFS library but are now shifting to REST. Now by reading the docs I see that when querying work items I should do this for max 200 work items

Cloning Azure git repository reports “could not resolve host”

牧云@^-^@ 提交于 2020-06-28 06:07:08
问题 Here is my git url as reported by Azure TFS: https://mycompany@dev.azure.com/mycompany/myproject/_git/myproject Here is my clone command git clone https://myusername:mypass@mycompany@dev.azure.com/mycompany/myproject/_git/myproject However, I am unable to access the repository. The error is: Could not resolve host: mycompany@dev.azure.com Can someone please suggest how to overcome this? Regards. 回答1: This was from the hint in phd's comment. Turns out, Azure generated url is somewhat

Can't access ArtifactStagingDirectory variable in MSBuild

偶尔善良 提交于 2020-06-27 13:42:48
问题 During my build process I'm trying to copy a folder to the artifacts folder (\myserver\d$\TFBuild-Agent01\66\a). So I put this in the .csproj file: <Target Name="BeforeBuild"> <Exec Command="xcopy.exe Databases "$(Build.ArtifactStagingDirectory)\Databases" /i /e /y /d" /> </Target> This gets me Error MSB4184: The expression """.ArtifactStagingDirectory" cannot be evaluated. Method 'System.String.ArtifactStagingDirectory' not found* Everything I can find online says that $(Build

Can't access ArtifactStagingDirectory variable in MSBuild

こ雲淡風輕ζ 提交于 2020-06-27 13:42:28
问题 During my build process I'm trying to copy a folder to the artifacts folder (\myserver\d$\TFBuild-Agent01\66\a). So I put this in the .csproj file: <Target Name="BeforeBuild"> <Exec Command="xcopy.exe Databases "$(Build.ArtifactStagingDirectory)\Databases" /i /e /y /d" /> </Target> This gets me Error MSB4184: The expression """.ArtifactStagingDirectory" cannot be evaluated. Method 'System.String.ArtifactStagingDirectory' not found* Everything I can find online says that $(Build

TFS error: Merge must finish before the Pull Request can be completed

可紊 提交于 2020-06-25 04:27:26
问题 We have a PR in TFS which cannot be completed or abandoned, because the button is grayed out/disabled. The tooltip on hover says: Merge must finish before the Pull Request can be completed Merge in progress ... [Abandon] [Restart Merge] Screenshot (notice the grayed out button): How do we complete it? Is there an unfinished merge in git? If so, how was the branch pushed in the first place? And why can't it be Abandoned at least? Googling with the full error text doesn't yield any results, it

How to connect TFS in Visual Studio code without Azure Repo

[亡魂溺海] 提交于 2020-06-23 14:10:33
问题 I have just started a project in angular 8 for my work. I am very new to angular. I was suggested to use VS code for development. I have successfully perform the initial installation and also have successfully build couple of html pages. Now i want to commit all the development work to tfs.. I did a lot of research and all the article suggested to use Azure Repo. My work does not have Azure Repo. So my question is, are there any other ways to connect to TFS from Visual Studio Code. And how

TF246017: team foundation server could not connect to the database

橙三吉。 提交于 2020-06-15 08:27:27
问题 I am facing a problem with logging into TFS. I get the following error: Exception Message: TF246017: Team Foundation Server could not connect to the database. Verify that the server that is hosting the database is operational, and that network problems are not blocking communication with the server. (type SoapException)SoapException Details: 回答1: Please check below thing to narrow down the issue: Make sure you are the member of the Administration Console Users . Otherwise you cannot access

TFS Rest Api authorization issue in Python 2

。_饼干妹妹 提交于 2020-06-12 21:49:39
问题 I am trying to access TFS REST API in Python 2 but getting 401 Authorization Error . I am able to access API url from web-browser using same credentials. Also same credentials is working with .Net code. Tried with urllib2 library as guided in this solution. Any suggestion to access TFS api in Python2? tfs.py import requests from requests.auth import HTTPDigestAuth username = '<UserName>' password = '<Password>' tfsApi = 'https://{myserver}/tfs/collectionName/_apis/projects?api-version=2.0'

how to connect VSTS Azure Devops using rest api in java? i am not getting any documentation in java for this [closed]

送分小仙女□ 提交于 2020-06-01 08:05:10
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I need to connect VSTS Server using rest API in java. i have been through the documentation provided by Microsoft, but its for c# i need sample java programme for java, is there any jar released by Microsoft for VSTS, as i cannot find any jar related to this. Using c# i am able to

When my TFS build is triggered by a branch-specific check-in, why doesn't it set that branch as its source?

♀尐吖头ヾ 提交于 2020-06-01 06:55:08
问题 My goal is to create a TFS CI Build that is triggered by check-ins on two specific branches of a project, hosted in TFVC. When I queue the build manually and type a specific branch in the "Shelveset name" field of the queue prompt, the build works as intended. However, when I check in changes from one specific branch, the build attempts to use the parent folder of the two branches as its default source, resulting in incorrect file paths throughout the build definition wherever I use the $