microsoft / microsoft/aspire

Remove Reflection in TrustedRootsHelper

Open
#16,161 0 comments 0 reactions 0 assignees View on GitHub
area-cli
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

In #16049 we added support for signature verification on Linux. This involved bringing 2 .pem files from the SDK into our aspire-managed.exe.

In order to get NuGet to use these .pem files, we needed to resort to reflecting on internals of NuGet.

Once there is a NuGet version with [Aot compatible: NuGet.Packaging (NuGet/NuGet.Client#7197)](https://github.com/NuGet/NuGet.Client/pull/7197) fixed, we can remove this reflection and instead write the files to a folder named `trustedroots` next to our executable and NuGet will pick up the .pem files without needing for reflection.

This issue is tracking making that change once the available fixes are available.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.