Building VC++ Projects without Visual Studio

Sunday, July 14, 2013

Building VC++ projects (.vcxproj) without Visual Studio isn't as easy as building C# projects. Today a new build machine setup was failed on CL error: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147): "CL.exe" exited with code -1073741515. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(297,5): Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. Solution 1. Install Windows SDK 7.1 on the build agent. 2. Open C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.props and add to the default PropertyGroup: <PlatformToolset>Windows7.1SDK</PlatformToolset It should look similar to: <PropertyGroup> <TargetExt /> ...
tags: , ,
no comments

Unregistering Custom Data Collector From TFS

Sunday, June 2, 2013

A custom data collector for automated tests was deployed successfully at a customer site. However when we've tried to replace it in MTM, old versions persisted in the database. The following procedure was used to unregister the stale data collectors. Get all data collectors from tbl_DataCollector: SELECT * FROM .. Execute the stored procedure prc_UnregisterDataCollector with parameters: @partitionId: the partitionId as appears in...
tags: , ,
no comments

Visual Studio 2012 Branching Bug?

Wednesday, February 27, 2013

An unusual bug discovered on a customer site related to Visual Studio + TFS 2012 branching  I've posted it on connect: #780177: A newly created branch contains historical partial merges on a server upgraded from 2010 to 2012 causing unexpected conflicts   The odd part is, the 2nd workaround we've found exposes unexpected difference when running from Visual Studio UI, where tf.exe command does not seems to reproduce the problem.   Workarounds 1. Running "tf.exe merge /recursive /discard <parent> <child>" seems to fix the issue. 2. Use the command line...
one comment

Microsoft Pull Ahead of the Competition, says Gartner’s Magic Quadrant for ALM 2012

Friday, June 8, 2012

Gartner’s Magic Quadrant is one of the most prominent, if not the most prominent benchmark tools for major technology markets. The analysis report on the ALM market for 2012 is out, and marks Microsoft as the current leader: “By virtue of its position in the market as a provider of key platforms and development tools, Microsoft acts as an overall thought leader in the ALM market.” What about Microsoft’s disadvantages? Gartner says: “Although Microsoft is one of the only vendors to cover all aspects of the SDLC, its greatest challenge has been support for...
tags: ,
no comments

TF31002 and TFS on SSL

Friday, April 27, 2012

I had an issue of TFS web access resulted with TF31002 error along with HTTP 404 response: TF31002: Unable to connect to this Team Foundation Server: https://tfs/tfs. Team Foundation Server Url: https://tfs/tfs. Possible reasons for failure include: - The name, port number, or protocol for the Team Foundation Server is incorrect. - The Team Foundation Server is offline. - The password has expired or is incorrect....
tags: ,
no comments

Importing Reports From SSRS 2008 R2 To SSRS 2008

Tuesday, April 3, 2012

When importing an RDL report from SSRS 2008 server to the newer SSRS 2008 R2 version, the server will automatically upgrade it to latest version. But when attempting to import the other way around it won’t work as the older server doesn’t recognize the newer format. In order to successfully import an RDL from 2008 R2 to the previous SSRS 2008 version, you need to downgrade the RDL file format. 1. Change schema: <Report xmlns:rd="" xmlns=""> 2. Remove <rd:SecurityType> element under the <DataSources> element: <rd:SecurityType>None</rd:SecurityType> 3. Remove <ReportSections> and <ReportSection> elements: ...
no comments

Visual Studio 2010 Error On Source Control Explorer

Thursday, March 8, 2012

Today I've encountered a strange error when opening the Source Control Explorer: Team Foundation Error Method not found: 'Boolean Microsoft.TeamFoundation.VersionControl.Client.Workspace.OwnerNameMatches(System.String)'. That denied any use of the source control. I’ve tried re-applying Visual Studio 2010 SP1 and TFS 2010 SP1 but to no avail. Eventually, only after a complete uninstallation and reinstallation of Visual Studio 2010 SP1 the error has gone. Hmmpf.

TFS 2010 Server Domain and Database Move – Command Summary

Tuesday, March 6, 2012

cd "%PROGRAMFILES%\Microsoft Team Foundation Server 2010\Tools" :::::: BRING TFS OFFLINE TfsServiceControl quiesce iisreset /stop :::::: CONFIG DATABASE TFSConfig PrepSQL /sqlinstance:tfs TFSConfig RemapDBs /DatabaseName:tfs;Tfs_configuration /SQLInstances:tfs /continue :: run again for verification: TFSConfig RemapDBs /DatabaseName:tfs;Tfs_configuration /SQLInstances:tfs /continue :::::: CONFIG PERMISSIONS TFSConfig Accounts /ResetOwner /SQLInstance:tfs /DatabaseName:TFS_Configuration TFSConfig Accounts /add /AccountType:ApplicationTier /account:NEWTFS\TFSAdmin /SQLInstance:tfs /DatabaseName:TFS_Configuration TFSConfig Accounts /add /AccountType:ReportingDataSource /account:NEWTFS\TFSAdmin /SQLInstance:tfs /DatabaseName:TFS_Configuration TFSConfig...
no comments