You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
got a warning during compilation on this line (22) :
varassembly= Assembly.Load(memoryBytes);
message says :
D:\Program.cs(22): Trim analysis warning IL2026: Program.Main(String[]): Using method 'System.Reflection.Assembly.Load(Byte[])' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types and members the loaded assembly depends on might be removed.
and at runtime when i run the compiled output i got :
D:\bflat\Program.exe
Unhandled Exception: System.PlatformNotSupportedException: Operation is not supported on this platform.
at Internal.Reflection.Execution.AssemblyBinderImplementation.Bind(Byte[], Byte[], AssemblyBindResult&, Exception&) + 0x39
at System.Reflection.Runtime.Assemblies.RuntimeAssembly.GetRuntimeAssemblyFromByteArray(Byte[], Byte[]) + 0x56
at Program.Main(String[]) + 0x5f
at Program!<BaseAddress>+0x2d7bbf
The text was updated successfully, but these errors were encountered:
That's expected. With bflat you're getting ahead of time compilation same as Go or Rust. It's not possible to load new code that wasn't compiled ahead of time. Same as in Go or Rust.
got a warning during compilation on this line (22) :
message says :
and at runtime when i run the compiled output i got :
The text was updated successfully, but these errors were encountered: