Skip to content

Commit

Permalink
fix: Support new tests run on unix systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentiva committed Nov 11, 2024
1 parent 58ce90f commit e7c14fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ private async Task ShouldMutateCompiledSourceToExpectedAsync(string methodName,
new CSharpCompilationOptions(OutputKind
.DynamicallyLinkedLibrary));

var regexGeneratorDll = Path.Combine(basePath, @"..\..\..\packs\Microsoft.NETCore.App.Ref\",
var regexGeneratorDll = Path.Combine(basePath, "..", "..", "..", "packs", "Microsoft.NETCore.App.Ref",
Path.GetFileName(basePath),
@"analyzers\dotnet\cs\System.Text.RegularExpressions.Generator.dll");
"analyzers", "dotnet", "cs", "System.Text.RegularExpressions.Generator.dll");

var sourceGenerator =
Activator.CreateInstanceFrom(regexGeneratorDll, "System.Text.RegularExpressions.Generator.RegexGenerator")
Expand Down

0 comments on commit e7c14fe

Please sign in to comment.