Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 825 Bytes

File metadata and controls

27 lines (21 loc) · 825 Bytes

Compilation Fix Applied

Error Fixed:

CS0119: "Queryable.Count<TSource>(IQueryable<TSource>)" ist "Methode" und im angegebenen Kontext nicht gültig.

Root Cause:

  • _libraryManager.GetItemList() returns IQueryable<T> or IEnumerable<T>
  • On these types, Count is an extension method, not a property
  • Trying to access .Count.ToString() fails because Count is a method group

Fix Applied:

  • Changed items?.Count.ToString() to items?.Count().ToString()
  • This calls the Count() extension method instead of trying to access a property

File Modified:

  • /app/ApiController.cs line 307

Now try building again:

dotnet clean StudioDashboard.sln
dotnet restore StudioDashboard.sln
dotnet build StudioDashboard.sln -c Release

This should resolve the CS0119 compilation error.