tfs2015

Is there a .NET API equivalent to the “Build 2.0” REST API for TFS 2015?

拜拜、爱过 提交于 2019-12-04 17:54:32
问题 The REST API Reference for VS Team Services and TFS page separates the "Build 1.0" and "Build 2.0" APIs. It seems like such a difference also exists in the .NET API because running the following code only lists the "old" XAML build definitions and not the new ones. var tpc = new TfsTeamProjectCollection(new Uri("http://tfsurl")); var buildServer = tpc.GetService<IBuildServer>(); var def = buildServer.QueryBuildDefinitions("Project Name"); // Finds only XAML definitions Is there a new DLL I

An error occurred while sending the request in TFS2015 update2 vNext build configuration

六月ゝ 毕业季﹏ 提交于 2019-12-04 13:55:08
While configuring a TFS vNext build agent i am getting the error: ErrorConnectingToTheServer An error occurred while sending the request. the request. I could not find any other error message in the event log or anywhere else. Please help. Update1: The SSL (https///tfs) did not work.but the plain http:// worked. Update 2: I have removed the old agents and trying to configure new one. While doing that i am getting the below error that is present in the _diag folder: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException:

AJAX cross domain issue with Visual Studio Team Services REST API

倖福魔咒の 提交于 2019-12-04 12:23:16
问题 I'm trying to write a JavaScript client for Visual Studio Team Services REST API which send AJAX requests to our self hosted Team Foundation Server 2015 but I'm facing to a cross domain issue. The API requires credentials to authenticate but due to security reasons, the browser blocks my requests because the parameter Access-Control-Allow-Origin is set with the wildcard * . I tried to add this parameter in HTTP Response Headers in IIS Manager and also in the TFS web.config file (which is

Cannot add queue to existing TFS 2015 Build agent pool

对着背影说爱祢 提交于 2019-12-04 11:19:16
Trying to set up build server after upgrading to TFS 2015. The way I envision is: Single Agent Pool, that will have 3 queues: 1. Nightly builds 2. CI builds 3. Gated/validation builds. Each of them will have some agents, the goal is to have some control, to make sure nightly builds wouldn't consume all agent, so gated queue will always have some available agent. The problem I have now is when I try to add new queue, the option "Use existing pool" is disabled, I can only add queue with creating new agent pool. It doesn't work the way you want it to work. One agent can be a member of one and

Partially stage files with Visual Studio

↘锁芯ラ 提交于 2019-12-04 09:56:02
问题 Is there any way to just stage pieces of code in a file instead of the whole file? Just wondering if this is possible. Using Visual Studio 2015, TFS 2015 (Git). 回答1: No, neither Visual Studio 2015 nor 2017 support staging hunks (partial files). You'll need to use another client to stage these partial changes. Staging hunks is a client feature, any client that supports it can be used to stage a hunk. The command line or a 3rd party client like Tower or SourceTree will do. Once staged,

ASP.NET 5 (vNext) Deployment via TFS 2015

浪尽此生 提交于 2019-12-04 05:37:20
We're trying to work through the new tool chain for building and deploying an ASP.NET 5 (vNext) CoreCLR web site to a server cluster. Between the new compilation changes and the changes to TFS, I'm not sure how everything now gets built and deployed. The scenario is as follows: On-premise TFS for source control and build agent Targeting ASP.NET 5 under CoreCLR, hosted via IIS Questions are: Using TFS for continuous integration builds (and hopefully deployment to an on-premise IIS server), how does one build and deploy this new application type? It seems like MSBuild might still be usable to

Access levels configuration tab not visible in TFS 2015

烂漫一生 提交于 2019-12-04 05:27:42
问题 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? 回答1: To see the Access levels tab,

How to specify a build agent in vNext build

孤街浪徒 提交于 2019-12-04 05:09:34
问题 I have a vNext build definition, which has a agent pool specified. This agent pool has more then one agent. I want to specify say agent number 2 to be used by this build definition. How can I make sure that for a particular build definition a specific build Agent is used to run the build? 回答1: You can add a User Capability to that specific build agent then in the build definition you put that capability as a demand (General tab) 回答2: Now you can use Agent.Name or Agent.ComputerName demands in

How do I get the the expected output from a TFS 2015 build (to match my XAML build)?

拜拜、爱过 提交于 2019-12-04 04:44:28
问题 We just upgraded to TFS2015 (onsite) and I'm trying to set up a build that will do the same thing as my xaml builds but I can't seem to get the same files built. Here's a picture of the xaml output directory that I use to publish the site. To get this I navigate to the build folder then drill down to the _PublishedWebsites\BOTWSitecoreWeb folder: Here's a picture of the solution explorer: So as you can see BOTWSitecoreWeb is my startup project and it forms the basis for the website. So to

The session for this agent already exists

做~自己de王妃 提交于 2019-12-04 04:29:24
I am using TFS to execute a nightly build that includes several steps that use the TFS Test Agent . I am running the latest version of TFS/Test Agent(2015 - Update 3) and there are no other builds being run at this time. Often(maybe half the time), when the nightly job is run the step "Visual Studio Test Agent Deployment" fails with the following error: The job has been abandoned because agent Agent-XXX did not renew the lock. Ensure agent is running, not sleeping, and has not lost communication with the service. This is due to the error found in the Test Agent's log file(under _diag): The