Share via

Issue to "Install-Package itext7.bouncy-castle-adapter"

Jonathan 150 Reputation points
2026-06-05T06:33:52.4933333+00:00

Hi,

Any idea to it below when doing "Install-Package itext7.bouncy-castle-adapter" on PS?

User's image

Developer technologies | ASP.NET Core | Other
0 comments No comments

Answer accepted by question author

Tom Tran (WICLOUD CORPORATION) 5,030 Reputation points Microsoft External Staff Moderator
2026-06-05T08:32:15.5566667+00:00

Hi @Jonathan ,

Please try installing the newer package name instead:

dotnet package add itext.bouncy-castle-adapter

If you are using an older .NET SDK, use:

dotnet add package itext.bouncy-castle-adapter

The package itext7.bouncy-castle-adapter has been renamed/deprecated. You can check the current package here: itext.bouncy-castle-adapter.

If you want to use Visual Studio Package Manager Console instead, run:

Install-Package itext.bouncy-castle-adapter

Please run the command from the project folder that contains your .csproj file.Hope this helps! If my explanation and the information I provided were helpful, I would greatly appreciate it if you could follow the instructions here so others with the same problem can benefit as well. 

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. AI answer

    2026-06-05T06:34:11.87+00:00

    The error message indicates that PowerShell’s PackageManagement (Install-Package) cannot find a package named itext7.bouncy-castle-adapter in any of the currently registered package sources.

    Install-Package in PowerShell uses the registered providers/sources (such as PSGallery, NuGet feeds configured for PackageManagement, etc.). If the package does not exist in those feeds, the command will fail with:

    No match was found for the specified search criteria and package name

    To resolve this:

    1. Verify that the package actually exists in the feed that PackageManagement is using. If it is a NuGet package, ensure that the NuGet source containing itext7.bouncy-castle-adapter is added as a PackageManagement source.
    2. Run Get-PackageSource in PowerShell to see which sources are registered. If the feed that hosts itext7.bouncy-castle-adapter is missing, add it as a source.
    3. If the package is only available on nuget.org and not exposed through PowerShell’s PackageManagement configuration, install it via the NuGet tooling appropriate for the project (for example, using the NuGet Package Manager in Visual Studio or dotnet add package / nuget.exe), rather than Install-Package in a generic PowerShell session.
    4. If this is a custom or internal package, confirm with the package owner that it is published to the correct feed and that the feed is reachable and correctly configured in the environment.

    If, after checking the available sources, the package still cannot be found, the package ID or version might be incorrect, or the package may not be published.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    1 person found this answer helpful.
  2. Jonathan 150 Reputation points
    2026-06-05T06:55:53.0066667+00:00

    Can you advise to issue below?

    User's image

    Was this answer helpful?

    0 comments No comments

Your answer

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