We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bc15bc commit af5622aCopy full SHA for af5622a
csharp/extractor/Semmle.Extraction.CSharp/Extractor/CompilerVersion.cs
@@ -75,7 +75,7 @@ public CompilerVersion(Options options)
75
}
76
77
// If csc is specified as compiler name, then attempt to read the version information from csc.dll
78
- var compilerBinaryName = SpecifiedCompiler.EndsWith("csc") ? $"{SpecifiedCompiler}.dll" : SpecifiedCompiler;
+ var compilerBinaryName = Path.GetFileName(SpecifiedCompiler) == "csc" ? $"{SpecifiedCompiler}.dll" : SpecifiedCompiler;
79
var versionInfo = FileVersionInfo.GetVersionInfo(compilerBinaryName);
80
if (!knownCompilerNames.TryGetValue(versionInfo.OriginalFilename ?? string.Empty, out var vendor))
81
{
0 commit comments