DCSIMG
TFS,Team System - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

Browse by Tags

All Tags » TFS » Team System (RSS)
Validate Field Format in Work Items using MATCH Element
Tweet Today I got a interesting questions from a customer – How I can force format to a version field? I said cool finally I can use the MATCH Element (Work Item Type Definition Schema) to set a regex for System.Title field, The MATCH rule doesn't support full regular expressions , but a simplified version. <MATCH pattern="pattern to match" for="user name" not="user name" /> Enforces basic pattern matching for strings only. <pattern> should be replaced...
TFS API Index Parts 1 To 37
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 Part 8: Subscribe/Unsubscribe Events Using IEventService TFS API Part...
TFS API Part 24 – Get All Fields From TFS
TFS API Part 24 – Get All Fields From TFS I got an email regarding previous post ( TFS API Part 6: WorkItemStore - Get Fields From WorkItemType ) how to get Fields without regard to Work Item Type? This is very easy using Team System API. Download Demo Project Step 1: Create Project and Add Reference Create an WPF/WinForm application and add the following references:      Microsoft.TeamFoundation.WorkItemTracking.Client.dll (C:\Program Files (x86)\Microsoft Visual Studio 10.0...
Create OLAP Failed – XML parsing failed at line 1, column 0: A document must contain exactly one root element.
Create OLAP Failed – XML parsing failed at line 1, column 0: A document must contain exactly one root element. I’ve visit one of my customers and saw a strange error in the event log: Errors in the metadata manager. An error occurred when instantiating a metadata object from the file, '\\?\C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\TfsWarehouse.0.db\Today.886.dim.xml'. Detailed Message: Create OLAP failed Exception Message: XML parsing failed at line 1, column 0: A document must...
The Ultimate Offer – TFS For Everyone
The Ultimate Offer – TFS For Everyone In my previous posts I’ve talked about TFS 2010 Server Licensing , 500$ for TFS retail it’s a very good price, But I have MSDN Subscription Do I Need To Pay More? You don’t need to pay any additional fee, the opposite, you will get a Free Upgrade with many new features and new tools. Each version of Visual Studio 2010 includes a Team Foundation Server , so if you have Visual Studio 2008 Professional with MSDN Professional you can upgrade to Visual Studio 2010...
Problem Creating Work Item Store From Web Service (Work Item Tracking Metadata Cache)
Problem Creating Work Item Store From Web Service (Work Item Tracking Metadata Cache) I create a Web Service for a customer and during the development I had a little problem getting WorkItemStore object. Error 1: Cannot complete the operation. An unexpected error occurred. Stake:   at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.HandleComException(Int32 hr)    at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DatastoreClass.ConnectEx(String connectionString...
Cannot open database "TfsWarehouse" requested by the login
Cannot open database "TfsWarehouse" requested by the login I Installed TFS 2008 on Server 2008 with SQL 2008, everything during the installation went fine except the reports. When I tried to process the cube using SSMS I got the following error: Detailed Message: Cube processing runtime error: \r\nMicrosoft.AnalysisServices.OperationException: Internal error: The operation terminated unsuccessfully.Internal error: The operation terminated unsuccessfully.OLE DB error: OLE DB or ODBC error...
How To: Fix error MSB3091 During MSBuild
How To: Fix error MSB3091 During MSBuild Building Build Script for a customer I got the following error: C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1756,9): error MSB3091: Task failed because "LC.exe" was not found, or the correct Microsoft Windows SDK is not installed……. It seems like “ LC.EXE ” was not found and I need to install “Microsoft Windows SDK for Server 2008 and .NET Framework 3.5” (Running build on server 2003 machine). “ LC.EXE ” is the License Compiler...
TFS Installation Troubleshooting
TFS Installation Troubleshooting After I have finish installing everything TFS needs new screen appears and gave the option to pick how I want to set my TFS server. I' have picked to install using “Default Configuration” and click “Start Wizard”.   But the Configuration Wizard had couple of errors…       I went back to the start screen and now I picked to use Custom Configuration. The reason is that I didn’t use the default SQL instance name so I need to change it.  ...
TFS 2010 Installation in 30min
TFS 2010 Installation in 30min First thing I have to say is: It was Fast! The new installation of Team Foundation Server 2010 is easy, fast and user friendly. You can install components of Team Foundation on any supported 64-bit or 32-bit edition of Windows Server 2008 or Windows Server 2003, with the exception of any Itanium-based editions.   After we finished the installation a new window will appear called “Team Foundation Server Configuration”. This screen will help you adjust TFS to desire...
TFS API Part 19: Merge
TFS API Part 19: Merge In my last post about TFS API   TFS API Part 18: More Basic Stuff On Workspaces I demonstrate how to get / create and delete workspaces. In this post I’ll show how to perform Merge using TFS API . First add reference for      Microsoft.TeamFoundation      Microsoft.TeamFoundation.Client      Microsoft.TeamFoundation.Common.dll      Microsoft.TeamFoundation.VersionControl.Client.dll located...
Team Foundation Server 2010 Key Concepts
Team Foundation Server 2010 Key Concepts bharry just post a great article about TFS 2010 key concepts - http://blogs.msdn.com/bharry/archive/2009/04/19/team-foundation-server-2010-key-concepts.aspx There is couple of major changes and very nice improvements, each day we are getting closer and closer to VS2010. I believe that these new capabilities will significantly change the way enterprises manage their TFS installations in the future. Enjoy
How To Add Check In Policy
How To Add Check In Policy I know this is something that almost every one knows but some people don’t so here it is: To perform this action you need to be Administrators of Team Foundation version control. Open Team Explorer – Right click on your Team Project –> Team Project Settings – > Source Control Choose “Check-in Policy” tab and add the policies  you want.   Test your Check-in policy by performing check-in in source control.   For additional policies download Team Foundation...
TFS Check-in Validation Tool – V 1.0.0.75
TFS Check-in Validation Tool There is a new version available in CodePlex Project Description The TFS Check-in Validation Tool extends TFS Team Build 2008 by enabling buddy build queuing (pre-checkin), validating checkins using shelvesets, and build agent pooling, all from the VS 2008 IDE. Buddy Build Process Flow
TFS API Part 18: More Basic Stuff On Workspaces
TFS API Part 18: More Basic Stuff On Workspaces In my last post I showed how to TFS API Part 17: Get WorkSpaces Information In this post I’ll show to go couple of basic actions on you workspace. Demo Project First add reference for      Microsoft.TeamFoundation      Microsoft.TeamFoundation.Client      Microsoft.TeamFoundation.Common.dll      Microsoft.TeamFoundation.VersionControl.Client.dll located in - C:\Program Files...
More Posts Next page »