NU1102: Unable to find package Microsoft.Extensions.Logging.Abstractions with version (>= 8.0.0)

Nikolaj Ravn 20 Reputation points
2024-02-12T19:48:27.5166667+00:00

I get a problem from Microsoft.Extensions.Logging.Abstractions version 8.0.0  I get this problem: "NU1102: Unable to find package Microsoft.Extensions.Logging.Abstractions with version (>= 8.0.0)". 

All I do is: 
$dotnet new console Demo1 

$cd Demo1 

$dotnet add package Microsoft.Extensions.Logging.Abstractions 

and boom! I'm running .net 8.0.1 (just reinstalled it) on MacOs Arm

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,395 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 questions
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 26,671 Reputation points Microsoft Vendor
    2024-02-13T03:05:49.2633333+00:00

    Hi @Nikolaj Ravn ,

    Try the following steps.

    1. Clear NuGet cache: Sometimes the NuGet cache can cause issues. Try clearing it by running the following command: dotnet nuget locals all --clear.
    2. Check NuGet package source: Ensure that your NuGet package source is correctly configured and accessible. You can check the configured sources using:dotnet nuget list source. Make sure that the Microsoft NuGet feed is listed and enabled. If not, you can add it using:dotnet nuget add source -n nuget.org https://api.nuget.org/v3/index.json.
    3. Update NuGet CLI: Ensure that your NuGet CLI is up to date. You can update it using:dotnet tool update --global dotnet-nuget.

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful