diff --git a/src/NuGetForUnity/Editor/NugetHelper.cs b/src/NuGetForUnity/Editor/NugetHelper.cs index 832d76c4..4699f1c9 100644 --- a/src/NuGetForUnity/Editor/NugetHelper.cs +++ b/src/NuGetForUnity/Editor/NugetHelper.cs @@ -1430,7 +1430,13 @@ internal static void CheckForUnnecessaryPackages() continue; } - var pkgPath = Path.Combine(folder, $"{folderName}.nupkg"); + var pkgPath = Path.Combine(folder, $"{folderName}.nupkg"); + if (!File.Exists(pkgPath)) + { + // ignore folder not containing a nuget-package + continue; + } + var package = NugetPackage.FromNupkgFile(pkgPath); var installed = false;