tfs2010

Where is the build log located in Team Foundation Server 2010?

Deadly 提交于 2019-12-07 13:27:22
问题 I am looking for the physical location of the TFS workflow log. Not the MSBuild Log but the log you see when you click "View Log". I have read in other forums that the log is stored in an SQL database. But which database is it and specifically what table? Thanks. Hope someone knows the answer to this. 回答1: The entire build log can be found in the Tfs_YourTeamProjectCollection database in the Tbl_BuildInformation . The Tbl_BuildInformation table contains self referencing entries to preserve

VS2010 TFS Build Failure-Could not complete the request to remote agent

二次信任 提交于 2019-12-07 09:34:15
问题 I received this error when trying to run a build from within VS2010. C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (3588): Web deployment task failed.(Could not complete the request to remote agent URL 'https://http//[serverName]:8172/msdeploy.axd?site=Default Web Site'.) Could not complete the request to remote agent URL 'https://http//[serverName]:8172/msdeploy.axd?site=Default Web Site'. The remote name could not be resolved: 'http' I'm not sure

How to Lock obsolete TeamProjects

情到浓时终转凉″ 提交于 2019-12-07 08:28:37
问题 As part of a maintenance, I was about to Lock several now-obsolete TeamProjects, by right-clicking on each one's root in Source Control Explorer ( $/TeamProject ) and selecting "Lock..". Once I was done, I tried to commit these changes, which was denied with the following message: By searching around I bumped into the following statement, made as part of this discussion: Locks are applied such that the user who places the lock can checkin/checkout files but noone else can until the lock is

TFS API - Updating a work item field

∥☆過路亽.° 提交于 2019-12-07 06:38:23
问题 Is it possible to update a field of a work item using the TFS API ? Something along this line: WorkItemStore.GetWorkItem(Convert.ToInt32(current.WorkItemId)).State = rcbState.SelectedValue; 回答1: You can set update your WorkItem properties as you show above, just be sure to save them once your done with it. Something like: WorkItem item = WorkItemStore.GetWorkItem(Convert.ToInt32(current.WorkItemId)); item.State = rcbState.SelectedValue; item.Save(); 来源: https://stackoverflow.com/questions

Get current TFS connection in a Visual Studio addin

那年仲夏 提交于 2019-12-07 06:26:06
问题 I'm working on a Visual Studio 2010 add-in, and I'm trying to figure out how to determine the currently connected TFS server. I'm guessing I need to use DTE, but I'm having a brain cramp figuring out where to get the info. 回答1: I suggest you check out the Microsoft.TeamFoundation.VersionControl.Client.Workstation.GetLocalWorkspaceInfo method, in result you have an object and access ServerUri property See this documentation on MSDN for more details. 回答2: Robaticus originally edited the

TFS Branch refused to go

北慕城南 提交于 2019-12-07 04:02:58
问题 We are on TFS 2010 and clients being used are VS 2008, VS 2010 and VS 2012. I use the VS 2010 feature to view TFS hierarchy feature to visualize my TFS branch setup and maintain it. Question, is that once the work on a branch is complete, I right click and 'Delete' it. After deletion, if I open hierarchy visualization again, sometimes branch box gets removed from the visualization as expected, but sometimes, even though the branch is deleted, it refused to go away from the visualization. Why

reference assemblies for framework “.NETFramework,Version=v4.5” were not found in TFS2010

不问归期 提交于 2019-12-07 02:59:20
问题 I am getting below error, while execute build in TFS 2010: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be

Programmatically get TFS blame (annotation) data

岁酱吖の 提交于 2019-12-07 02:42:37
问题 I'm trying to implement a plugin for Team Foundation Server 2010 that will create reports about users in a team project. Conceptually, all I need in order to properly implement this plugin is access to the same data that you get when you use the "Annotate" feature in Visual Studio: I need to be able to tell who was the last person to author a given line of code. I've scoured the Internet for documentation or code samples, but all that I can find are either suggestions such as using the TFS

Use for WorkItemAttribute?

孤人 提交于 2019-12-07 01:27:23
问题 I noticed there's an attribute Microsoft.VisualStudio.TestTools.UnitTesting.WorkItemAttribute available in visual studio testing (I'm using VS 2010 Premium and work items with TFS 2010.) Marking a test method with a work item number sounds handy, but does it actually do anything? I can't tell if there's any tool support for it at all. I set one up like this: [WorkItem(25788)] [TestMethod] public void TestSomethingSpecificToABug() { ... But no magic - I thought maybe the context menu on the

Can I bypass Gated Check-In build after checking a file in during a separate build process? TFS 2010

风流意气都作罢 提交于 2019-12-07 01:23:16
问题 I have 2 build definitions set up for a solution, 1 is a nightly build that is triggered every night and the other is a Gated Check-In build that will trigger when developers try to check new changes into source control. The nightly build is using a custom template that increases assembly versions using method that has been slightly modified from the Ewald Hoffman method. When a file is checked in via the custom activity to check files in, i get the build error: Your check-in could not be