diff --git a/nuget.config b/nuget.config
new file mode 100644
index 0000000..a6425c4
--- /dev/null
+++ b/nuget.config
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/src/PortToTripleSlash/src/libraries/Extensions.cs b/src/PortToTripleSlash/src/libraries/Extensions.cs
index d7927c6..3c1c06b 100644
--- a/src/PortToTripleSlash/src/libraries/Extensions.cs
+++ b/src/PortToTripleSlash/src/libraries/Extensions.cs
@@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
+using System.Linq;
namespace ApiDocsSync.PortToTripleSlash
{
@@ -59,6 +60,8 @@ public static string DocIdEscaped(this string docId) =>
// Checks if the passed string is considered "empty" according to the Docs repo rules.
public static bool IsDocsEmpty(this string? s) =>
string.IsNullOrWhiteSpace(s) || s == Configuration.ToBeAdded;
+
+ public static bool HasItems(this IEnumerable src) => src?.Any() ?? false;
}
}
diff --git a/src/PortToTripleSlash/src/libraries/ToTripleSlashPorter.cs b/src/PortToTripleSlash/src/libraries/ToTripleSlashPorter.cs
index 24ad955..ea5aadd 100644
--- a/src/PortToTripleSlash/src/libraries/ToTripleSlashPorter.cs
+++ b/src/PortToTripleSlash/src/libraries/ToTripleSlashPorter.cs
@@ -191,7 +191,7 @@ private async Task CollectSymbolLocationsFromReferencedProjectsAsync(DocsType do
}
}
- if (!docsType.SymbolLocations.Any())
+ if (!docsType.SymbolLocations.HasItems())
{
Log.Error($"No symbols found for docs type '{docsType.DocId}'.");
}
diff --git a/src/PortToTripleSlash/src/libraries/libraries.csproj b/src/PortToTripleSlash/src/libraries/libraries.csproj
index cd217d4..0c2b666 100644
--- a/src/PortToTripleSlash/src/libraries/libraries.csproj
+++ b/src/PortToTripleSlash/src/libraries/libraries.csproj
@@ -11,18 +11,18 @@
-
-
-
-
-
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
+
+
+
+
diff --git a/src/PortToTripleSlash/tests/tests.csproj b/src/PortToTripleSlash/tests/tests.csproj
index 298731b..322ec05 100644
--- a/src/PortToTripleSlash/tests/tests.csproj
+++ b/src/PortToTripleSlash/tests/tests.csproj
@@ -28,11 +28,11 @@
-
-
-
-
-
+
+
+
+
+
all