Gabriel
Gabriel

Reputation: 333

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?

Upvotes: 2

Views: 291

Answers (2)

Gabriel
Gabriel

Reputation: 333

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.

Upvotes: 0

jessehouwing
jessehouwing

Reputation: 114957

It seems to live here in v14:

public class ProjectFeatureProvisioningService : ITeamFoundationService, IProjectFeatureProvisioning

Name: Microsoft.TeamFoundation.Server.WebAccess.WorkItemTracking.Common.ProjectFeatureProvisioningService 
Assembly: Microsoft.TeamFoundation.Server.WebAccess.WorkItemTracking.Common, Version=14.0.0.0 

Reflector is your friend in these cases. Just load all assemblies from the TFS server directories into Reflector and then use the search feature:

enter image description here

It'll then be a piece of cake to find the assembly "Microsoft.TeamFoundation.Server.WebAccess.WorkItemTracking.Common.dll" here:

  • C:\Program Files\Microsoft Team Foundation Server 14.0\Application Tier\Web Services\bin
  • C:\Program Files\Microsoft Team Foundation Server 14.0\Application Tier\TFSJobAgent\Plugins

These internal classes can move between assemblies without notification. That's why they're internal ;).

Full disclosure: I received a copy of Reflector Pro for my blogging and love for the product. There are other products like IlSpy, justDecompile or dotPeek which may offer similar functionality.

Upvotes: 1

Related Questions