Skip to content

Commit 2273bb1

Browse files
committed
C#: Include all (legacy) nuget restored folders in standalone references
1 parent b782e5b commit 2273bb1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DependencyManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public DependencyManager(string srcDir, IDependencyOptions options, ILogger logg
9191
{
9292
var nuget = new NugetPackages(sourceDir.FullName, packageDirectory, progressMonitor);
9393
nuget.InstallPackages();
94+
dllPaths.UnionWith(GetAllPackageDirectories());
9495
}
9596
catch (FileNotFoundException)
9697
{

csharp/ql/integration-tests/posix-only/standalone_dependencies_nuget/Assemblies.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,4 @@
239239
| 4.8-api/WindowsBase.dll |
240240
| 4.8-api/cscompmgd.dll |
241241
| 4.8-api/mscorlib.dll |
242+
| /Newtonsoft.Json.6.0.4/lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll |

0 commit comments

Comments
 (0)