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 646b272 commit d04bf6bCopy full SHA for d04bf6b
csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DependencyManager.cs
@@ -368,10 +368,17 @@ private void AddNetFrameworkDlls(ISet<AssemblyPath> dllPaths, ISet<string> frame
368
}
369
370
371
- runtimeLocation ??= Runtime.ExecutingRuntime;
+ if (runtimeLocation is null)
372
+ {
373
+ runtimeLocation ??= Runtime.ExecutingRuntime;
374
+ dllPaths.Add(new AssemblyPath(runtimeLocation, name => !name.StartsWith("Semmle.")));
375
+ }
376
+ else
377
378
+ dllPaths.Add(runtimeLocation);
379
380
381
logger.LogInfo($".NET runtime location selected: {runtimeLocation}");
- dllPaths.Add(runtimeLocation);
382
frameworkLocations.Add(runtimeLocation);
383
384
0 commit comments