@@ -91,7 +91,7 @@ public DependencyManager(string srcDir, ILogger logger)
91
91
this . generatedSources = new ( ) ;
92
92
var allProjects = allNonBinaryFiles . SelectFileNamesByExtension ( ".csproj" ) . ToList ( ) ;
93
93
var allSolutions = allNonBinaryFiles . SelectFileNamesByExtension ( ".sln" ) . ToList ( ) ;
94
- var dllPaths = allFiles . SelectFileNamesByExtension ( ".dll" ) . Select < string , AssemblyPath > ( x => x ) . ToHashSet ( ) ;
94
+ var dllPaths = allFiles . SelectFileNamesByExtension ( ".dll" ) . Select ( x => new AssemblyLookupLocation ( x ) ) . ToHashSet ( ) ;
95
95
96
96
logger . LogInfo ( $ "Found { allFiles . Count } files, { nonGeneratedSources . Count } source files, { allProjects . Count } project files, { allSolutions . Count } solution files, { dllPaths . Count } DLLs.") ;
97
97
@@ -192,7 +192,7 @@ void exitCallback(int ret, string msg, bool silent)
192
192
] ) ;
193
193
}
194
194
195
- private HashSet < string > AddFrameworkDlls ( HashSet < AssemblyPath > dllPaths )
195
+ private HashSet < string > AddFrameworkDlls ( HashSet < AssemblyLookupLocation > dllPaths )
196
196
{
197
197
var frameworkLocations = new HashSet < string > ( ) ;
198
198
@@ -230,7 +230,7 @@ private HashSet<string> AddFrameworkDlls(HashSet<AssemblyPath> dllPaths)
230
230
continue ;
231
231
}
232
232
233
- dllPaths . UnionWith ( dlls . Select < string , AssemblyPath > ( x => x ) ) ;
233
+ dllPaths . UnionWith ( dlls . Select ( x => new AssemblyLookupLocation ( x ) ) ) ;
234
234
frameworkLocations . UnionWith ( dlls ) ;
235
235
}
236
236
catch ( Exception e )
@@ -284,7 +284,7 @@ private void RemoveNugetAnalyzerReferences()
284
284
}
285
285
}
286
286
287
- private void SelectNewestFrameworkPath ( string frameworkPath , string frameworkType , ISet < AssemblyPath > dllPaths , ISet < string > frameworkLocations )
287
+ private void SelectNewestFrameworkPath ( string frameworkPath , string frameworkType , ISet < AssemblyLookupLocation > dllPaths , ISet < string > frameworkLocations )
288
288
{
289
289
var versionFolders = GetPackageVersionSubDirectories ( frameworkPath ) ;
290
290
if ( versionFolders . Length > 1 )
@@ -313,7 +313,7 @@ private static DirectoryInfo[] GetPackageVersionSubDirectories(string packagePat
313
313
. ToArray ( ) ;
314
314
}
315
315
316
- private void RemoveFrameworkNugetPackages ( ISet < AssemblyPath > dllPaths , int fromIndex = 0 )
316
+ private void RemoveFrameworkNugetPackages ( ISet < AssemblyLookupLocation > dllPaths , int fromIndex = 0 )
317
317
{
318
318
var packagesInPrioOrder = FrameworkPackageNames . NetFrameworks ;
319
319
for ( var i = fromIndex ; i < packagesInPrioOrder . Length ; i ++ )
@@ -322,7 +322,7 @@ private void RemoveFrameworkNugetPackages(ISet<AssemblyPath> dllPaths, int fromI
322
322
}
323
323
}
324
324
325
- private void AddNetFrameworkDlls ( ISet < AssemblyPath > dllPaths , ISet < string > frameworkLocations )
325
+ private void AddNetFrameworkDlls ( ISet < AssemblyLookupLocation > dllPaths , ISet < string > frameworkLocations )
326
326
{
327
327
// Multiple dotnet framework packages could be present.
328
328
// The order of the packages is important, we're adding the first one that is present in the nuget cache.
@@ -371,7 +371,7 @@ private void AddNetFrameworkDlls(ISet<AssemblyPath> dllPaths, ISet<string> frame
371
371
if ( runtimeLocation is null )
372
372
{
373
373
runtimeLocation ??= Runtime . ExecutingRuntime ;
374
- dllPaths . Add ( new AssemblyPath ( runtimeLocation , name => ! name . StartsWith ( "Semmle." ) ) ) ;
374
+ dllPaths . Add ( new AssemblyLookupLocation ( runtimeLocation , name => ! name . StartsWith ( "Semmle." ) ) ) ;
375
375
}
376
376
else
377
377
{
@@ -382,7 +382,7 @@ private void AddNetFrameworkDlls(ISet<AssemblyPath> dllPaths, ISet<string> frame
382
382
frameworkLocations . Add ( runtimeLocation ) ;
383
383
}
384
384
385
- private void RemoveNugetPackageReference ( string packagePrefix , ISet < AssemblyPath > dllPaths )
385
+ private void RemoveNugetPackageReference ( string packagePrefix , ISet < AssemblyLookupLocation > dllPaths )
386
386
{
387
387
var packageFolder = packageDirectory . DirInfo . FullName . ToLowerInvariant ( ) ;
388
388
if ( packageFolder == null )
@@ -404,7 +404,7 @@ private bool IsAspNetCoreDetected()
404
404
return fileContent . IsNewProjectStructureUsed && fileContent . UseAspNetCoreDlls ;
405
405
}
406
406
407
- private void AddAspNetCoreFrameworkDlls ( ISet < AssemblyPath > dllPaths , ISet < string > frameworkLocations )
407
+ private void AddAspNetCoreFrameworkDlls ( ISet < AssemblyLookupLocation > dllPaths , ISet < string > frameworkLocations )
408
408
{
409
409
if ( ! IsAspNetCoreDetected ( ) )
410
410
{
@@ -426,7 +426,7 @@ private void AddAspNetCoreFrameworkDlls(ISet<AssemblyPath> dllPaths, ISet<string
426
426
}
427
427
}
428
428
429
- private void AddMicrosoftWindowsDesktopDlls ( ISet < AssemblyPath > dllPaths , ISet < string > frameworkLocations )
429
+ private void AddMicrosoftWindowsDesktopDlls ( ISet < AssemblyLookupLocation > dllPaths , ISet < string > frameworkLocations )
430
430
{
431
431
if ( GetPackageDirectory ( FrameworkPackageNames . WindowsDesktopFramework , packageDirectory ) is string windowsDesktopApp )
432
432
{
0 commit comments