Skip to content

Commit a0dc20c

Browse files
committed
Fix hashed value on Windows
1 parent 0037ad4 commit a0dc20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/SourceGenerators/DotnetSourceGeneratorWrapper/DotnetSourceGeneratorWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public IEnumerable<string> RunSourceGenerator(IEnumerable<string> additionalFile
3838
try
3939
{
4040
var relativePathToCsProj = Path.GetRelativePath(sourceDir, csprojFile);
41-
var name = FileUtils.ComputeHash($"{relativePathToCsProj}{Environment.NewLine}{this.GetType().Name}");
41+
var name = FileUtils.ComputeHash($"{relativePathToCsProj}\n{this.GetType().Name}");
4242
using var tempDir = new TemporaryDirectory(Path.Join(FileUtils.GetTemporaryWorkingDirectory(out _), "source-generator"), "source generator temporary", logger);
4343
var analyzerConfigPath = Path.Combine(tempDir.DirInfo.FullName, $"{name}.txt");
4444
var dllPath = Path.Combine(tempDir.DirInfo.FullName, $"{name}.dll");

0 commit comments

Comments
 (0)