-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Description
Using a nuget.config file with a custom globalPackagesFolder, the metadata of the referenced nuget packages will not be resolved.
Example for such a nuget.config file:
<?xml version="1.0" encoding="utf-8"?>
<!-- Adds the relative path Extern/NugetPackageFeed to the package sources -->
<!-- this file is merged with the user nuget settings and the settings in the .nuget dir of the solution -->
<configuration>
<config>
<add key="globalPackagesFolder" value="C:\SharedNugetPackages" />
</config>
</configuration>
Proposed change: The NugetUtils class could be adapted:
- add new parameter
Microsoft.Sbom.Common.Config.IConfiguration configurationto the constructor - resolve the correct folder with
customPackagePath = SettingsUtility.GetGlobalPackagesFolder(Settings.LoadDefaultSettings(this.configuration.BuildComponentPath.Value)); - use
customPackagePathas a fallback solution to resolve thenuspecLocationin methodNugetUtils.GetMetadataLocation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels