Adventures in upgrading to TFS to 2015

This is the chronological order of problems I encountered as I upgraded our build infrastructure from TFS 2013 to TFS 2015.

Problem: TFS 2015 does not have a build controller like TFS 2013 and can't run the old XAML build definitions.
Solution: Leave Installed/Install/Re-Install TFS 2013 Build controller.

Around this time I installed VS 2015 Enterprise on the build machine because I intended to use it.

Problem: Build reports error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Solution: Added /tv:14.0 to the MSBuild arguments.

Problem: Build reports error Unhandled Exception: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Solution: Applied the license key to the installed copy of VS 2015 Ultimate on the build machine.

Problem: Build reports error TF900547: The directory containing the assemblies for the Visual Studio Test Runner is not valid
Solution: Leave Installed/Install/Re-Install VS2013 (I used the Ultimate edition)

Problem: Build reports error Unhandled Exception: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()
at LibGit2Sharp.Core.NativeMethods..cctor()
--- End of inner exception stack trace ---
at LibGit2Sharp.Core.NativeMethods.RemoveHandle()
at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject.Finalize()

Solution: Apply license key to the installed copy of VS 2013 Ultimate on the build machine.

Comments