Search code examples
c#vb.nettfs-process-templatetfs-2015

How to update a customized process template to access new features in multiple Team Projects in TFS 2015 RTM?


I read these links on the official Microsoft page Update a customized process template to access new features :

When I try to execute Features4tfs.2015 in debug I get this exception System.NotSupportedException: Specified method is not supported. at Microsoft.TeamFoundation.Integration.Server.CommonStructureService.Microsoft.Tea‌​‌​mFoundation.Framework.Server.ITeamFoundationService.ServiceStart(TeamFoundation‌​Re‌​questContext systemRequestContext)

on this call

ProjectFeatureProvisioningService.GetFeatures(...).

Any idea?


Solution

  • Here is a solution proposed by Microsoft to solve the problem with features4tfs on TFS 2015 RTM :

    insert this line

    deploymentHostProperties.PlugInDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"Microsoft Team Foundation Server 14.0\Application Tier\TFSJobAgent\Plugins");
    

    just after this line (line 68)

    TeamFoundationServiceHostProperties deploymentHostProperties = new TeamFoundationServiceHostProperties();
    

    After that it works perfectly on TFS 2015 RTM.