Skip to content
Snippets Groups Projects
Commit 1c755d52 authored by Chris Bacon's avatar Chris Bacon
Browse files

Coreclr compatible DefaultSslRootsOverride.cs

Coreclr doesn't support Assembly.GetExecutingAssembly().
Use TypeInfo.Assembly instead, which is supported on all platform.
parent f6c7951e
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ namespace Grpc.Core.Internal
{
lock (staticLock)
{
var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(RootsPemResourceName);
var stream = typeof(DefaultSslRootsOverride).GetTypeInfo().Assembly.GetManifestResourceStream(RootsPemResourceName);
if (stream == null)
{
throw new IOException(string.Format("Error loading the embedded resource \"{0}\"", RootsPemResourceName));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment