We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05f3c64 commit f20812dCopy full SHA for f20812d
csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/Sdk.cs
@@ -55,14 +55,14 @@ private static HashSet<DotNetVersion> ParseSdks(IList<string> listed)
55
56
private string? GetCscPath()
57
{
58
- var newestSdkVersion = GetNewestSdkVersion();
59
- if (newestSdkVersion is null)
+ var version = Version;
+ if (version is null)
60
61
logger.LogWarning("No dotnet SDK found.");
62
return null;
63
}
64
65
- var path = Path.Combine(newestSdkVersion.FullPath, "Roslyn", "bincore", "csc.dll");
+ var path = Path.Combine(version.FullPath, "Roslyn", "bincore", "csc.dll");
66
logger.LogDebug($"Source generator CSC: '{path}'");
67
if (!File.Exists(path))
68
0 commit comments