mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Code quality improvement
This commit is contained in:
@@ -55,14 +55,14 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
|
||||
private string? GetCscPath()
|
||||
{
|
||||
var newestSdkVersion = GetNewestSdkVersion();
|
||||
if (newestSdkVersion is null)
|
||||
var version = Version;
|
||||
if (version is null)
|
||||
{
|
||||
logger.LogWarning("No dotnet SDK found.");
|
||||
return null;
|
||||
}
|
||||
|
||||
var path = Path.Combine(newestSdkVersion.FullPath, "Roslyn", "bincore", "csc.dll");
|
||||
var path = Path.Combine(version.FullPath, "Roslyn", "bincore", "csc.dll");
|
||||
logger.LogDebug($"Source generator CSC: '{path}'");
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user