A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
The error message indicates that NuGet cannot restore packages because it “could not find a part of the path” to a DLL inside a package. This is a restore/configuration issue rather than a problem specific to version 8.0.3.
Use these steps to fix the restore process:
- Verify package sources
- Open a Developer Command Prompt or terminal in the solution folder.
- Run:
dotnet nuget list source - If no sources are listed, or the expected feed (for example,
nuget.orgor your internal feed) is missing, add it back in your NuGet configuration. - Alternatively, create a new
NuGet.Configat the repository level:
Then add the correct package source(s) to that file.dotnet new nugetconfig
- Check that the dependency package exists and supports the project’s target framework
- Open the project file (
.csproj) and find the package reference that depends onMicrosoft.Identity.ServiceEssentials.Modules.SettingBasedTokenRevocation. - Confirm that the package version you are using exists on your configured sources and that it supports the project’s target framework (for example,
netstandard2.0,net6.0, etc.). If not, change to a compatible version.
- Open the project file (
- Clear and re‑restore packages
- Close Visual Studio.
- Delete the
packagesfolder under the solution (if usingpackages.config) or delete theobjandbinfolders (for SDK‑style projects). - Reopen the solution and run a full restore (for example,
dotnet restoreor Visual Studio’s “Restore” button).
If restore still fails and the missing DLL is part of a third‑party package, the package itself may be incorrectly authored (for example, containing invalid or unsafe paths). In that case, contact the package owner to correct the package, similar to how circular or unsafe package contents must be fixed by the package author.
References: