tfs2010

Running VS2012 unit tests from TFS2010 Team Build

a 夏天 提交于 2019-12-01 08:05:17
I have a Visual Studio 2012 solution using .NET 4.5 framework. The rest of our development system is TFS2010. Recently some of our unit tests have been failing on the build server only. After going through several rounds of debugging I was able to determine that the cause of the failed tests was most likely due to the version of MSTest being used on the build server. The tests in question pass when run from VS2012 on my local machine and when run from VS2012 on the actual build server. I have followed the steps described in the following articles (I have not found any useful articles directly

How can I add an attachment via the SDK to a work item without using a physical file?

淺唱寂寞╮ 提交于 2019-12-01 07:18:21
问题 I'm trying to create a new work item for TFS 2010 via the client SDK. In the SDK you can do something like this: WorkItem item = ...; item.Attachments.Add(new Attachment("c:\\path\\on\\tfs\\server\\shot.png", "Screen shot")); item.Save(); But this requires the file being attached to be placed on either a network accessible path, or on a disk in the TFS server itself. In our case the file being attached is just an in-memory blob, and having to save attachments to a physical path seems

Find changeset id parent of a branch in tfs

孤街醉人 提交于 2019-12-01 07:12:47
With TFS, could someone tell me how to find the id of the changeset of the last commit common to 2 branches (or the trunk and a branch)? It's easy to find the id of the first changeset of a branch (with 'tf history') but I could not find the parent of this commit :( Tfs seems to not keep (or display) this information! Note : Take the previous commit id (ex : 119 if the first changeset id of the branch is 120) is not a solution because changeset id are incremented by all the commits on any branches on any projects in the tfs server (so the previous commit could be taken by another project,

How to add a timestamp to TFSBuild.proj?

旧时模样 提交于 2019-12-01 05:59:20
I have a TFSBuild.proj file and I need to add date/time logging for statistics i.e. which parts of the builds take the most time and where can we improve the process. The build outputs the log to BuildLog.txt. I use the following tags to get custom messages in the BuildLog.txt file, but I need to add a timestamp to each message. <Message Text="Debug: BeforeGet start: StartTimeGoesHere"></Message> <Message Text="Debug: BeforeGet end: EndTimeGoesHere"></Message> Is it possible to get a timestamp in the message? Is there a MSBuild variable that gets the current datetime value? In the example

Execute script after deployment - MSDeploy

让人想犯罪 __ 提交于 2019-12-01 05:55:36
Is there a way to trigger a custom script (or open a windows app) after a user imports the deployment package using IIS and completes the installation? Any help? Try help for msdeploy.exe. msdeploy.exe -help -postSync or http://technet.microsoft.com/en-us/library/ee619740(WS.10).aspx msdeploy -verb:sync -source:contentPath="C:\Test1" -dest:contentPath="C:\Test2" -preSync:runcommand="Appcmd stop sites MyWebSite" -postSync:runcommand="Appcmd start sites MyWebSite" msdeploy -verb:sync -source:contentPath="C:\Test1" -dest:contentPath="C:\Test2" -preSync:runcommand="c:\MyBatchFile.bat" msdeploy

Running VS2012 unit tests from TFS2010 Team Build

做~自己de王妃 提交于 2019-12-01 05:53:21
问题 I have a Visual Studio 2012 solution using .NET 4.5 framework. The rest of our development system is TFS2010. Recently some of our unit tests have been failing on the build server only. After going through several rounds of debugging I was able to determine that the cause of the failed tests was most likely due to the version of MSTest being used on the build server. The tests in question pass when run from VS2012 on my local machine and when run from VS2012 on the actual build server. I have

New TFS 2010 Features [closed]

别来无恙 提交于 2019-12-01 05:51:24
Does anyone know where I can go to get a list of the new TFS 2010 features. NOTE: I need TFS 2010 features. Not Visual Studio 2010. My boss is wondering why not just upgrade to Visual Studio 2010 and not worry about updating TFS from 2008 to 2010. (VS2010 is compatable with TFS 2008.) Any input would be nice. LBushkin Try Channel 9 and MSDN: http://channel9.msdn.com/pdc2008/TL52/ http://msdn.microsoft.com/en-us/vstudio/dd441784.aspx#ALM The TFS Team Blog also has some interesting content, but you have to sift through it. http://download.microsoft.com/download/6/7/3/673B71D0-6D4F-4591-9940

Find changeset id parent of a branch in tfs

北慕城南 提交于 2019-12-01 05:06:00
问题 With TFS, could someone tell me how to find the id of the changeset of the last commit common to 2 branches (or the trunk and a branch)? It's easy to find the id of the first changeset of a branch (with 'tf history') but I could not find the parent of this commit :( Tfs seems to not keep (or display) this information! Note : Take the previous commit id (ex : 119 if the first changeset id of the branch is 120) is not a solution because changeset id are incremented by all the commits on any

TfsConfigurationServer.GetService<VersionControlServer>() always returns null

爷,独闯天下 提交于 2019-12-01 04:16:54
I'm trying to connect to TFS 2010 using TFS SDK, but can't get VersionControlServer service. var servers = RegisteredTfsConnections.GetConfigurationServers(); // ok then var tfs = new TfsConfigurationServer(servers.First().Uri, CredentialCache.DefaultNetworkCredentials); // or var tfs = new TfsConfigurationServer(servers.First()); both always returns null: var vc = (VersionControlServer)tfs.GetService<VersionControlServer>(); // null! What should I do? You don't want the configuration server, you want the project collection. The version control service is scoped to a team project collection.

How to add a timestamp to TFSBuild.proj?

笑着哭i 提交于 2019-12-01 04:06:37
问题 I have a TFSBuild.proj file and I need to add date/time logging for statistics i.e. which parts of the builds take the most time and where can we improve the process. The build outputs the log to BuildLog.txt. I use the following tags to get custom messages in the BuildLog.txt file, but I need to add a timestamp to each message. <Message Text="Debug: BeforeGet start: StartTimeGoesHere"></Message> <Message Text="Debug: BeforeGet end: EndTimeGoesHere"></Message> Is it possible to get a