In my UWP project I have a library which relies on IL instructions like override
.
.method public virtual instance void Method1(string s, object o) {
.override ClassA::Method2
// code
}
This IL instruction works in debug
but fails when I compile in release
.
The .NET Native compiler is currently targeted at IL generated by our C# and VB compilers (the old ones and Roslyn). I'm not perfectly familiar with their output but generally this kind of issue means that "normal" C#/VB never emit such IL.
There's potentially two paths forward:
Historically we've tried very hard to be focused on the C#/VB scenario but we've take fixes here and there to help support folks that have "odd" IL constructs. Either way, hearing about your scenario can certainly help us make more informed engineering decisions in the future.