Could not load file or assembly ‘Microsoft.TeamFoundation.Client While Running Tests

Thursday, July 25, 2013

I know this sounds strange – What the relation between “'Microsoft.TeamFoundation.Client” and Running Tests from command line? Visiting a customer I saw this error when the the customer tried to run Coded UI Tests using MsTest (Machine only with Test Agent): Run has the following issue(s): Failed to queue test run 'XX@XXX-XXXTEAM-PC 2013-07-18 17:58:02': Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=ne utral, PublicKeyToken=b03f5f7f11d50a3a' or one of its...

The Git Hole

Wednesday, January 25, 2012

Tweet I consider myself a calm person with plenty of tolerance, I believe in productive discussion and love it – Part of my job as a consultant is to talk with Teams and explain them why you should choose a specific product over another, in 99.9% of those meetings there is one guy that don’t like the change (No One Like Changes) and you need in a calm way to explain and show him the benefits of the new tool – Forcing someone to do something is never a good thing. But sometimes there is no wining side in a discussion,...

TFS API Part 40–Build Service Host

Monday, November 14, 2011

Tweet First, what is the Build Service Host or IBuildServiceHost? The BuildServiceHost object represent the physical location of the Controller and/or Agent objects. The name property is usually the machine name that the Controller or Agent lives on. In earlier versions, this was simply the Machine Name property on the Agent. Now, I’m working with a customer works with Lab Manager and after upgrading the SCVVM and perform some port changes we faced an issue – The Build Service Host stuck in your server with no way to remove it. (there is no UI for Build Hosts) ...

Convert NUnit To MSTest Unit Test

Thursday, September 22, 2011

Tweet Today one of my customers decide to work with MSTest Unit Test instead of NUnit, he asked me what he need to do to make it happen? There are couple of options to accomplish that": Add Build Extension to Support NUnit run from MSBuild. Create Custom Activity to run NUnit executable Convert the NUnit Syntax to MSBuild Because the customer had nothing special in NUnit and the entire company works in .NET and Team Build we decide to convert the NUnit Tests to MBuild Unit Tests Format. Here is the steps you need to do: Reference You need to change “Nunit.framework.dll” with “Microsoft.VisualStudio.QualityTools.UnitTestFramework”. And change the using from...

Community TFS Build Extensions

Tuesday, July 5, 2011

CodeProject Yesterday (4/6/2010) the Community released 100 Activities / Actions for TFS 2010, here is some of the new activities Download Page Code Quality :CodeMetrics, NUnit, StyleCop Web : Iis7Website,Iis7AppPool,Iis7Binding,Iis7Application Communication: Email Compression: Zip Virtualization HyperV - An activity to perform HyperV operations within a TFS 2010 build Valid Action values are: Start,Shutdown,Turnoff,Pause,Suspend,Restart,Snapshot,ApplyLastSnapshot,ApplyNamedSnapshot VirtualPC - A set of tools to manage VirtualPCs Valid Action values are: AddHardDiskConnection, DiscardSavedState, DiscardUndoDisks, IsHeartBeating,IsScreenLocked, List,LogOff, MergeUndoDisks,Pause, RemoveHardDiskConnection, Reset,Restart,Resume,Save,Shutdown,Startup, TakeScreenshot,Turnoff,WaitForLowCpuUtilization, RunScript Download Page Release Notes This is our first Stable release providing in the region of 100 Activities / Actions This release contains assemblies and a CHM file. We anticipate shipping every 2 to 3 months...

Visual Studio ALM Video & Two Updates for TFS/VS You Should Install

Tuesday, June 28, 2011

CodeProject Some news for Visual Studio 2010, I’ll start from several updates you should to apply on you TFS and Visual Studio. KB - TFS 2010 SP1 Cumulative Update 1 – KB2536929 This is the first Update from Microsoft since SP1, and the new concept from Microsoft is to release hot fixes for critical bugs, every once in a while when the development team feels they have critical mass of fixes they will publish new Update includes all hot fixes. – So make sure your Visual Studio and TFS are up to date. ...

TFS API Part 38 – Create Label

Tuesday, June 14, 2011

In my last post on TFS API I summarize in Index Page include 37 parts -http://blogs.microsoft.co.il/blogs/shair/archive/2011/05/18/tfs-api-index-parts-1-to-37.aspx And I coming back with more about TFS API, and Today about how to create Label using TFS API. Download Demo Project Step 1: Create Project and Add Reference Create an WPF/WinForm application and add the following references: First add reference for Microsoft.TeamFoundation.dll Microsoft.TeamFoundation.Build.Client Microsoft.TeamFoundation.Build.Common.dll Microsoft.TeamFoundation.dll All files located under - c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\ Step 2: Connect Team Foundation Server for creating Label the only object we need to obtain is VersionControlServer, everything we need is there.private void BtnConnectClick(object sender, RoutedEventArgs e) {     var dp = new TeamProjectPicker(TeamProjectPickerMode.NoProject, false);     dp.ShowDialog(); //Display...

Visual Studio 2010 מכללת סלע ומיקרוסופט שמחות להזמינך למפגש מרתק ללא תשלום בנושא

Wednesday, June 1, 2011

Application Life Cycle Management with Visual Studio 2010 במפגש זה תוכלו ללמוד על פתרון ה- ALM המתקדם ביותר ולצפות בדמאויים עשירים. המפגש מיועד למפתחים ולבודקים ויועבר ע"י מיטב המומחים בנושא.   לוח זמנים מתוכנן : 8:30-9:00 – התכנסות ורישום. 9:00-10:00 – Requirement Management using Visual Studio 2010 – מרצה : דן מורגנשטיין. 10:00-11:00 – Applied Software Testing with Visual Studio 2010 – מרצה : שי רייטן 11:00-11:15 – הפסקה 11:15-12:00 – סיפור לקוח – חטיבת מוצרי ה- Enterprise של Nice בחברה ב- ALM כפתרון ארגוני. 12:00-12:45 – Team Build 2010 – מרצה : שמוליק סגל 12:45-13:00 – שאלות ותשובות.   המפגש יתקיים בבית מיקרוסופט , הפנינה 2, רעננה בתאריך : 5/6 לפרטים נוספים...

TFS API Index Parts 1 To 37

Wednesday, May 18, 2011

Since 2009 I ‘m writing about TFS API and several people asked to get an index page with all parts related to TFS API, so here is it: Basic TFS API Part 1: Domain Picker TFS API Part 2: Domain Picker Using Registered Servers (Cache) TFS API Part 3: Get Project List Using ICommonStructureService TFS API Part 4: Get TFS User List (Mail, Sid, Account, Domain) TFS API Part 7: Use IEventService To Get User Event Subscriptions TFS API...

TFS API Part 37 – Create Builds

This is the last of series of 3 about manipulating Build Controllers (TFS API Part 35 – Create Build Controllers), Agents and Definitions (TFS API Part 36 – Create Build Definitions) and now I’ll complete the series with a demonstration on how to create a new Build and set the Result using TFS API. This can assist you in building Fake definition in order to publish tests or setting a test environment much more easily. Download Demo Project As you can see from the picture above you can define the Build Name...