tfsbuild

How do you send a patch request from a c# client?

烂漫一生 提交于 2019-12-23 00:51:32
问题 I have a powershell script that does this : $uri = "$($tfsUri)/$($teamproject)/_apis/build/builds/$($buildID)?api-version=2.0" $data = @{keepForever = $keepForever} | ConvertTo-Json $response = $webclient.UploadString($uri,"PATCH", $data) I'm trying to rewrite this in C#, using a Webclient. WebClient client = new WebClient(); client.Encoding = System.Text.Encoding.UTF8; string reply = client.UploadString(url, "keepForever = true"); Console.WriteLine(reply); But I get : The remote server

TFS 2010: Gated Check-In On Main Branch; Rolling Builds on Dev Branch?

别说谁变了你拦得住时间么 提交于 2019-12-22 18:44:15
问题 I recently migrated from VSS to TFS 2010 and I've been absolutely loving it, but there's something I haven't yet been able to get working the way I think it should. GOALS I'd like to quickly know when a change to Development breaks a build. If we find out after-the-fact, it's no big deal. Since a lot of check-ins happen throughout the day, we don't want to wait on the build to finish, so it should be asynchronous. With our Main branch, I'd like to ensure that any time a merge happens into it,

How to build 2 solutions from a single TFS team build definition

邮差的信 提交于 2019-12-22 18:29:34
问题 I have a pretty large complicated application that has a smart client front end in one solution and a web services layer in another solution. We use 2 team build definitions in TFS 2010 to build the solutions. We are still using MS Build scripts not the new workflow based templates. How can we use a single build definition to build both solutions. We are open to either tricks inside MS Build scripts or moving to the new workflow templates. 回答1: You can simply set two Solutions to build by

How do you hook an editor for TFS 2010 WF BuildProcessTemplate arguments for built-in types that have a converter?

一世执手 提交于 2019-12-22 12:34:24
问题 I've followed the Team Foundation Server 2010 book's custom editor for a dictionary<string,string> and can't get it to go. I have another custom editor in the same assembly, and consumed by the same build template that works. This SO hints at it being a TypeConverter issue, but I don't think any part of a custom build assembly is just run when it is loaded. I'm getting the default generic Collection Editor instead of mine. I have tried using code more like my credential UITypeEditor uses, and

How to associate a Build to the test plan in Microsoft Test Manager (MTM) 2010?

那年仲夏 提交于 2019-12-22 09:15:23
问题 I am new using Microsoft Test tools, please help: When trying to run a test case from MTM, I am receiving the following warning message: Cannot create automated test run. A build associated with the active test plan is required to submit an automated test run Background info: I have created a Build definition in VS 2010 I have created a Build service host with Agents:Controller and Agent When I open MTM>Testing Center>Properties Build Configurations I can see my build definition selected in

Checkins to TFVC Team Projects trigger builds in Git Team Project

只谈情不闲聊 提交于 2019-12-22 08:54:55
问题 I have a TFS project set up for continuous integration. My problem is that checkins on other TFS projects are triggering builds of my project even when no change has been made to my project. It seems to be related to my project being a Team Foundation Git repository, and none of the other projects are. Where can I look to find out what's triggering this build? Edit: To be more clear, what I mean is that I have entirely separate Team Projects. All of them but one use Team Foundation Version

Project TargetDir on TFS build server

为君一笑 提交于 2019-12-22 06:35:17
问题 I'm using Pre-/Post-build events in my VS2012 project files to perform build tasks. This works perfectly fine locally, but I have an issue running it from our TFS 2012 Build Server. Locally the $(TargetDir) for each project is set to its own /bin folder. On the build server however this is set to a single /bin folder outside of the solution root folder in which it consolidates all the binaries that were build. This is not at all what I want! I just want the build server to behave the same way

Project TargetDir on TFS build server

拟墨画扇 提交于 2019-12-22 06:35:10
问题 I'm using Pre-/Post-build events in my VS2012 project files to perform build tasks. This works perfectly fine locally, but I have an issue running it from our TFS 2012 Build Server. Locally the $(TargetDir) for each project is set to its own /bin folder. On the build server however this is set to a single /bin folder outside of the solution root folder in which it consolidates all the binaries that were build. This is not at all what I want! I just want the build server to behave the same way

Excluding tests from tfs build

丶灬走出姿态 提交于 2019-12-22 05:01:30
问题 I want to exclude some tests from my continuous integration build but I haven't found a way to do so. One of the things I've tried was to set up the priority of those tests to -2 and then on the build I specified Minimum Test Priority = -1 but it still run those tests. Any help would be greatly appreciated. 回答1: Instead of using "Test Lists" that have been described, you should use the "Test Category" method. The test lists & VSMDI functionality have actually been deprecated in Visual Studio

TFSBuild/MSBuild and Project Reference vs File Reference

人盡茶涼 提交于 2019-12-22 04:42:35
问题 We Have a large VS solution using project references which is build by TFS Build like so: Solution - Project 1 - Project 2 - Project ... - Project N Because the solution is too large we have several smaller solutions which we use day to day: SubSolution - Project 1 - Project 19 The problem is that developers working on SubSolution find that it is not building because the project references could not be found, so they change the projects to use file references. This then goes on to break the