TFS2013.2

Apr 10, 2014 at 11:50 AM
Hi

after updating to TFS 2013.2 TFS Event Workflows stopped to work.
Main reason for this is that the type WorkItemChangedEvent has moved from Assembly Microsoft.TeamFoundation.WorkItemTracking.Server.DataAccessLayer to Microsoft.TeamFoundation.WorkItemTracking.Server. The namespace is still the same.

That means existing workflows has to be edited.
In the namespace definition you have to change the assembly name of namespace Microsoft.TeamFoundation.WorkItemTracking.Server. Just remove the .DataAccessLayer. The prefix was often mtws.
If you used other types which are still in DataAccessLayer you have to add a new namespace definition and adjust the types to use the new prefix.

Also you have to edit the element TextExpression.ReferencesForImplementation
Just add a new AssemblyReference element for Microsoft.TeamFoundation.WorkItemTracking.Server

The server plugin isn't working also and you have to download the source code and change some parts.
In TFSEventWorkflows.Common.target you have to add a new PropertyGroup element on top
  <PropertyGroup Condition="'$(VisualStudioVersion)|$(TfsBuildNumber)' == '12.0|30324.00'">
    <TfsVersion>2013.2</TfsVersion>
  </PropertyGroup>
and you have to add a new ItemGroup element
  <ItemGroup Condition="'$(TfsVersion)' == '2013.2'">
    <Reference Include="Microsoft.VisualStudio.Services.Common">
      <Private>false</Private>
    </Reference>
    <Reference Include="Microsoft.VisualStudio.Services.WebApi">
      <Private>false</Private>
    </Reference>
    <Reference Include="Microsoft.TeamFoundation.WorkItemTracking.Server">
      <Private>false</Private>
    </Reference>
  </ItemGroup>
Now compile and replace the assemblies you are using and it should work again. :)

BR
Sven
Coordinator
Apr 13, 2014 at 12:58 PM
Edited Apr 13, 2014 at 12:58 PM
Thanks a lot to Sven for his hint. The problem is addressed/fixed in

https://tfseventworkflows.codeplex.com/releases/view/119112

Thomas T.