❔ Making a C# library with dotnet 7 AOT issues
I want the ability to have classes in my method arguments but the
UnmanagedCallersOnlyAttribute
stops me. Is there anything I can do about this?7 Replies
have unmanaged structs in your method arguments
So I just can’t use classes
Because I don’t see why I couldn’t since it’s native ahead of time the layout of the class in memory should be known
Anyways new question
Can an aot c# program call a managed c# library somehow
normal dllimports or libraryimports should do
sorry i meant managed C# library
is that still possible?
i mean as long as you include it as a project reference, sure?
or a nuget or any other reference really
ah i assumed it wouldnt work because that library requires the C# runtime to run
thanks for the help
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.