Skip to content

Commit ad3cc8e

Browse files
committed
Change backslash to forward slash in file paths in the analyzer config file
1 parent c2eb2e9 commit ad3cc8e

File tree

1 file changed

+2
-1
lines changed
  • csharp/extractor/Semmle.Extraction.CSharp.Standalone

1 file changed

+2
-1
lines changed

csharp/extractor/Semmle.Extraction.CSharp.Standalone/Razor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.IO;
44
using Semmle.BuildAnalyser;
55
using System.Text;
6+
using System.Linq;
67

78
namespace Semmle.Extraction.CSharp.Standalone
89
{
@@ -40,7 +41,7 @@ private static void GenerateAnalyzerConfig(IEnumerable<string> cshtmls, string a
4041
using var sw = new StreamWriter(analyzerConfigPath);
4142
sw.WriteLine("is_global = true");
4243

43-
foreach (var f in cshtmls)
44+
foreach (var f in cshtmls.Select(f => f.Replace('\\', '/')))
4445
{
4546
sw.WriteLine($"\n[{f}]");
4647
var base64 = Convert.ToBase64String(Encoding.UTF8.GetBytes(f)); // TODO: this should be the relative path of the file.

0 commit comments

Comments
 (0)