Closed TFTomSun closed 2 weeks ago
@TFTomSun
Not really a known thing.
RestoreMetadata should be something that's always set.
Do you have any DotnetCliToolReference items in your projects by any chance?
If you don't have that, it'd be great if you can help us get a repro.
This issue has been automatically marked as stale because we have not received a response in 14 days. It will be closed if no further activity occurs within another 14 days of this comment.
NuGet Product Used
NuGet SDK
Product Version
net48, net6
Worked before?
6.7.1
Impact
I'm unable to use this version
Repro Steps & Context
Executing the restore command fails since Version 6.8.0 - I tried with all newer versions, including the current preview 6.11.0-preview.2. It fails for net48 and net6 processes. But I assume it would also fail for net8.
In our enterprise environments nuget.config we use local sources (directories) and nuget sources pointing to a JFrog Artifactory instance.
Is that issue already known? Or should I provide more information.
The failing line is in NuGet.Commands.RestoreCommand.PerformAuditAsync: AuditUtility audit = new AuditUtility(_request.Project.RestoreMetadata.RestoreAuditProperties, _request.Project.FilePath, graphs, _request.DependencyProviders.VulnerabilityInfoProviders, _logger);
in _request.Project.RestoreMetadata.RestoreAuditProperties the RestoreMetadata property is null, maybe because of a missing source error that happened before, which was catched.
Verbose Logs