After reinstalling dotnet, encountering an error when running 'dotnet run.' Attached is the error message. Please assist.

CHAMIKA 20 Reputation points
2023-11-25T06:17:39.8666667+00:00

error NU1100: Unable to resolve 'Humanizer.Core (>= 2.14.1)' for 'net7.0'. PackageSourceMapping is enabled, the following source(s) were not considered: Microsoft Visual Studio Offline Packages, nuget.org.

error NU1100: Unable to resolve 'Mono.TextTemplating (>= 2.2.1)' for 'net7.0'. PackageSourceMapping is enabled, the following source(s) were not considered: Microsoft Visual Studio Offline Packages, nuget.org.

User's image

Developer technologies ASP.NET ASP.NET Core
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2024-05-06T19:50:04.2333333+00:00

    you have enabled PackageSourceMapping which allows specifying the source of each package. The error the required nuget packages are not where specified, nor cached locally.

    You will update your source mapping. see:

    https://devblogs.microsoft.com/nuget/introducing-package-source-mapping/

    0 comments No comments

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.