diff --git a/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/IDotNet.cs b/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/IDotNet.cs index eec6a2b8d3b..3a1d1cc9809 100644 --- a/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/IDotNet.cs +++ b/csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/IDotNet.cs @@ -27,7 +27,8 @@ namespace Semmle.Extraction.CSharp.DependencyFetching private readonly Lazy> restoredProjects = new(() => GetFirstGroupOnMatch(RestoredProjectRegex(), Output)); public IEnumerable RestoredProjects => Success ? restoredProjects.Value : Array.Empty(); - private readonly Lazy hasNugetPackageSourceError = new(() => Output.Any(s => s.Contains("NU1301"))); + // NU1301 is the error and NU1801 is the equivalent warning. + private readonly Lazy hasNugetPackageSourceError = new(() => Output.Any(s => s.Contains("NU1301") || s.Contains("NU1801"))); public bool HasNugetPackageSourceError => hasNugetPackageSourceError.Value; private readonly Lazy hasNugetNoStablePackageVersionError = new(() => Output.Any(s => s.Contains("NU1103")));