Skip to content

Commit

Permalink
Explicit invoke the GenerateSpecFlowAssemblyHooksFileTask to fix the …
Browse files Browse the repository at this point in the history
…"phantom" errors in Xunit projects
  • Loading branch information
nemesv committed May 28, 2021
1 parent 252919e commit 1564620
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System.Collections.Generic;
using JetBrains.Application;
using JetBrains.ProjectModel.ProjectsHost;
using JetBrains.ProjectModel.ProjectsHost.MsBuild.Strategies;

namespace ReSharperPlugin.SpecflowRiderPlugin.ProjectRefresher
{
[ShellComponent]
public class XunitProjectModificator : MsBuildDefaultLoadStrategy.IModificator
{
public bool IsApplicable(IProjectMark projectMark)
{
return true;
}

public void Modify(List<string> targets)
{
//Temporary workaround for the Xunit error issue https://youtrack.jetbrains.com/issue/RIDER-62536
targets.Add("GenerateSpecFlowAssemblyHooksFileTask");
}
}
}

0 comments on commit 1564620

Please sign in to comment.