Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,14 @@ private void DoInitialize()
logger.LogDebug($"Failed to read file {file}, exception: {ex}");
}
}

logger.LogInfo("Finished reading project files.");
logger.LogInfo($"Legacy project structure usage detected: {isLegacyProjectStructureUsed}");
logger.LogInfo($"ASP.NET usage detected: {useAspNetCoreDlls}");
logger.LogInfo($"New project structure usage detected: {isNewProjectStructureUsed}");
logger.LogInfo($"Windows Forms usage detected: {useWindowsForms}");
logger.LogInfo($"WPF usage detected: {useWpf}");
logger.LogInfo($"Implicit usings enabled: {useImplicitUsings}");
}

[GeneratedRegex("(?<!<!--.*)<PackageReference.*\\sInclude=\"(.*?)\".*/?>", RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.Singleline)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,9 @@ public HashSet<AssemblyLookupLocation> Restore()
.Where(path => IsPathInSubfolder(path, legacyPackageDirectory.DirInfo.FullName, "tools"))
.ToList();

if (nugetPackageDllPaths.Count > 0)
{
logger.LogInfo($"Restored {nugetPackageDllPaths.Count} NuGet DLLs.");
}

logger.LogInfo($"Restored {nugetPackageDllPaths.Count} NuGet DLLs from packages.config files using the NuGet CLI.");

if (excludedPaths.Count > 0)
{
logger.LogInfo($"Excluding {excludedPaths.Count} NuGet DLLs.");
Expand All @@ -163,6 +162,13 @@ public HashSet<AssemblyLookupLocation> Restore()
}

nugetPackageDllPaths.ExceptWith(excludedPaths);

logger.LogInfo($"Using {nugetPackageDllPaths.Count} DLLs as dependency candidates from NuGet packages restored via the NuGet CLI based on packages.config files.");
foreach (var path in nugetPackageDllPaths)
{
logger.LogDebug($"Using NuGet DLL as dependency candidate: {path}");
}

assemblyLookupLocations.UnionWith(nugetPackageDllPaths.Select(p => new AssemblyLookupLocation(p)));
}
catch (Exception exc)
Expand Down
Loading