-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error was thrown when use System.Reflection.Assembly.GetExecutingAssembly() #132
Comments
By design. Your case requires .NET Standard 2.0 (where export). Although, more probably I will also consider later our "rebasing feature" for other system-based types in higher versions of .NET Core. See details: #123 Today, only System Object. Follow the news. |
I reworked my VS solution from #134 to use .NET Standard 2.0 (x64) library and now I get this exception: This exception is only displayed when run in console.
Application exits with code:
Modified VS Solution: Anyway, is there a way how to make this work on .NET Standard 2.1? Or are you planning to support it anytime soon? We just migrated our entire codebase to .NET Standard 2.1/.NET Core 3.1 so this would save us a ton of work. |
That's how MS implements CLR support when pe-module starts to be processed on host machine. For this repo I can implement some additional behavior in my custom assembler for additional rebasing of the types in final modules. For my other way please follow the news: #90 (comment)
It can be considered at least only after 1.7 release. Not earlier. Time will tell.
IL Assembler is mainly frontend. Well, at least this applies to the coreclr implementation which is different from the netfx implementation (no open source).
I only unpacked your DllExport_SEH_2.zip and I don't see problems in VS 16.4.2. Please open new issue for how to reproduce this error. Thanks. |
Hello
I'm trying dllexport for .NET Core
When I use System.Reflection.Assembly.GetExecutingAssembly (), it throws an exception
v1.7beta3:
Manager: Tried both
x86, x64
andDirect-Mod/Cecil
andRebase System Object
in all possible variants.Project type: .NET Core 3.1.100 Class Library
Code:
Calling code
Thank you for your contribution to this project
The text was updated successfully, but these errors were encountered: