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

Developer technologies | .NET | Other
Developer technologies | .NET | .NET CLI
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    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.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.