AssemblyLoadContext LoadfromAssemblyPath vs LoadFromNativeImagePath
What is the difference between LoadfromAssemblyPath and LoadFromNativeImagePath? When would I ever need/want to use the latter?
J
jborean•15d ago
I can see both end up calling AssemblyNative_LoadFromPath where the
assemblyPath
arg is the pwzILPath
and nativeImagePath
is pwzNIPath
but it seems like the latter is not used at all in that situation?R
reflectronic•15d ago
it was for original crossgen images which did not use the ReadyToRun format, they were in a separate .ni.dll file
those have not been produced by tools for a very long time and the associated code in the runtime to use those is now deleted
i suspect that’s why the code is sus
J
jborean•15d ago
Ah ok, explains why
pwzNIPath
was never actually used there. So there were cases where you could have had 2 files for an assembly to load?R
reflectronic•15d ago
yes, e.g. there was System.Private.CoreLib.dll and System.Private.CoreLib.ni.dll
J
jborean•15d ago
Thanks, appreciate the explanation!
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
52KMembers
View on DiscordWant results from more Discord servers?
More PostsSpotifyAPI - i dont understand things but i want this so bad...With alot of Help from the internet i somehow managed to get to this code: (in picture)
it is not ev✅ hey, can someone please fix this for me? it keeps giving me errors✅ WPF - how to approach a treeview displaying different types at different levels via MVVMI'm just learning WPF - so seeking some design advice. I'm designing a Visual Studio extension to viDoes hangfire has a redudant delay?I`ve created an Job that deletes object from db at certain time, but it looks like it is being delayhelp needed with accesing a variable in another scriptim trying to acces isgrounded in another script and have it be the same as hi but i get this errorIssue with websocket within a serviceIm having troubles using a websocket service within other parts of my projects, cannot use the Send HelpI'm new to C# in VSC and i have a Problem wich is why i can't execute the Code. What am i supposed t✅ Checking data from SQL databasehelp on verge of tears✅ How to export data from datagridview into excel fileI've tried like a few ways and cant really make sense of it, if someone can guide me through it it wProblem with Material Design Lib in wpfI have a Combobox item in Stack panel. Im using Material Desing for automatic styling but the Popup✅ Title: Issues with Authentication and Authorization using JWT with AutoRender Mode in Blazor NET8Hello friends,
I am currently facing challenges with Authentication and Authorization using JWT wit✅ How do I reference a specific private instance of a classI would like to know how I could reference a specific instance of a class, if the class is private aReceiving Game Controller Input while Minimized (WinForms C#)Pretty general question here. How would I go about receiving input from my user while they aren't tprocess startIve been trying to figure out why the proccess.start() hasnt been working✅ Configurations say that appsettings is returning nullBasically, i have a configuration and i'm trying to access a value from my appsettings, and all that✅ ASP.NET Core Web Api + SignalRHi, I have an API deployed on IIS but when a person wants to access it they get an error: "ERR_CONNE