Skip to content

Commit

Permalink
Merge pull request #115 from SpecFlowOSS/xunit-fix
Browse files Browse the repository at this point in the history
Explicit invoke the GenerateSpecFlowAssemblyHooksFileTask to fix the "phantom" errors in Xunit projects
  • Loading branch information
nemesv authored Jun 2, 2021
2 parents 87c933d + c675823 commit 571ea0d
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 571ea0d

Please sign in to comment.