tfs

Get latest revision from Visual Studio Online through code - TF30063

一曲冷凌霜 提交于 2019-12-25 08:27:55
问题 I am trying to create an automatic "get latest" -routine from our Visual Studio Online repository. However, I have tried a number of examples but they all return: TF30063: You are not authorized to access https://ourPath.visualstudio.com/DefaultCollection/ I even tried this console app, but it still returns the same error. I can login through the browser using credentials. I am running out of ideas on how to connect and get the latest code. 回答1: If you can log in through the browser using

Get latest revision from Visual Studio Online through code - TF30063

久未见 提交于 2019-12-25 08:27:15
问题 I am trying to create an automatic "get latest" -routine from our Visual Studio Online repository. However, I have tried a number of examples but they all return: TF30063: You are not authorized to access https://ourPath.visualstudio.com/DefaultCollection/ I even tried this console app, but it still returns the same error. I can login through the browser using credentials. I am running out of ideas on how to connect and get the latest code. 回答1: If you can log in through the browser using

Add additional column to Board on the Sprint level in TFS

纵饮孤独 提交于 2019-12-25 08:25:05
问题 My team and I are trying out TFS Online and using the Scrum template. Is it possible to add an additional column to the Board of the Current Sprint ? I know you can do it at the Feature level and the Back Log level but can't seem a way to add it at the Sprint level. Thanks! 回答1: This is impossible on VSTS for now. There has been a suggestion on UserVoice and already in the plan. Customize the columns on the Task Board We have finalized our plans how we can enable customizable columns on the

TFS Git repository fails to sync in Visual Studio 2015

久未见 提交于 2019-12-25 08:00:01
问题 My organization has invested in Team Foundation Server 2015 and we are in the initial stages of setting up our teams and projects. We have yet to agree on which source control to use (VSVC/Git), but because I have previous Git experience and personally prefer it I have taken it upon myself to test how Git integrates with Visual Studio Enterprise 2015 and our TFS site. I will outline the steps I took below, but my results so far lead me to believe some setting in VS is in conflict with Git's

TFSSecurity Unable to Resolve Identity

本秂侑毒 提交于 2019-12-25 07:47:03
问题 I am trying to use TFSSecurity to configure security on our new instance of TFS 2017. It works great when I test it by adding local user accounts on the TFS server into a TFS group but fails as soon as I change to trying to add domain groups or accounts. Here's the command and the results I am getting: PS C:> &"E:\TFS 2017\Tools\tfssecurity.exe" /g+ "n:[Project1]\Contributors" n:"DOMAIN1\TFS-Developers" /collection:http://myTfsServer:8080/tfs/PrimaryCollection Microsoft (R) TFSSecurity - Team

TFS 2015.1 - vNext - Using NuGet Packager but can't create package, invalid arguments

余生长醉 提交于 2019-12-25 07:46:49
问题 I'm using TFS 2015.1 (on premises not VSO), trying to build up to CI. The problem is that when using TFS "Nuget Packager" it is failing to create the nuget package from a csproj file. The same project can create on locally on my machine by using the same parameters. Can anyone suggest why? Thanks. Here is the packager log: 2016-04-13T17:37:34.3861624Z Set workingFolder to default: C:\TFS Build Agent\agent\tasks\NuGetPackager\0.1.56 2016-04-13T17:37:34.3881631Z Executing the powershell script:

TFS WorkItems returns null always

风格不统一 提交于 2019-12-25 07:46:17
问题 Here workItemStore always returns null.....i want log issues tp TFS as a nugs. But not able to do so becoz of null exception..help is grealy appreciated...Thank you.... var networkCredential = new NetworkCredential(userName, password, domainName); var credential = (ICredentials)networkCredential; //Connect to TFS Project Collection, provide server URL in format http:// ServerName:Port/Collection var tfs = new TfsTeamProjectCollection( TfsTeamProjectCollection.GetFullyQualifiedUriForName

TFS Build Definition Secret Variables

孤街醉人 提交于 2019-12-25 07:41:33
问题 I have several secret variables in my build definition that I'm passing to a powershell function in the argument property for the build step however they are getting sent in as ******** instead of being decrypted. The parameters that I'm passing into the call of the powershell script are the following with $(accesskey) and $(secretkey) set as secret in the build definition: -source "$(CodeDeploySource)" -destination "$(CodeDeployDestination)" -Description "$(Description)" -Location "$

TFS User needs permission to update build information

こ雲淡風輕ζ 提交于 2019-12-25 07:39:32
问题 Like I already asked in Visual Studio Forum, I wrote an application that binds work items to builds based on svn logs. When I try to hit buildDetail.Information.Save(); I get the Exception User (Bob) needs permission to update build information. This user got the right permission set in the build permission dialog and I also set it in the admin command line on the tfs itself C:\Program Files\Microsoft Team Foundation Server 14.0\Tools\tfssecurity /a+ Build ProjectName UpdateBuildInformation n

How do I get this command line script to work in TeamCity?

坚强是说给别人听的谎言 提交于 2019-12-25 07:29:09
问题 I finally got a msbuild to execute and do a publish through the command line. Now I'm wondering how do I do that via teamcity? When I run this command line it works! C:\TFS\project\myProject\APIproject>msbuild apiproject.csproj /p:DeployOnBuild=true /p:PublishProfile="Properties\PublishProfiles\DEV.pubxml" /p:VisualStudioVersio n=14.0 However, I don't see a good solution in TeamCity to run this script. 回答1: See the documentation: add an 'MsBuild' build step and populate the fields