GetType() in base class constructor returns differently as in a plugin assembly, with its host program either normally compiled or published as single package. #110679
Labels
needs-area-label
An area label is needed to ensure this gets routed to the appropriate area owners
Description
GetType() in base class constructor, when call from derived class, returns differently between runs as a dynamically loaded plugin when the host loading program is:
targeting net8, but compiled with net9 compiler in my case.
Reproduction Steps
write an assembly with following class to be built as a plugin:
Load this plugin with above classes from the host program which is built as normlly or published as a single package, the output of PrintMyTypeInfo() are different.
Expected behavior
it should behave the same!
Actual behavior
output "SubClass" as run compiled but "BaseClass" as published single package, targeting net8.
Regression?
No response
Known Workarounds
Write Gettype() in constructors of all derived subclasses.
Configuration
targeting net8 but compiled by net9 compiler
Other information
No response
The text was updated successfully, but these errors were encountered: