EvergineTeam / Feedback

Feedback, feature requests, and bug reports for Evergine.
https://evergine.com
14 stars 1 forks source link

WESC003 warning thrown during compilation #127

Open LeNitrous opened 2 years ago

LeNitrous commented 2 years ago

Currently I have this structure. This is to allow me to subclass Application to make it run under a test runner (i.e. NUnit)

code simplified for clarity

public abstract class MyAppBase : Application {}
public partial class MyApp : MyAppBase {}
public class MyTestApp : My AppBase {}

However since this MyAppBase is an abstract class inheriting Application, it throws this warning during compilation.

CSC : warning WESC003: The code generated to create scenes can not be injected, a partial class implementing 'Evergine.Framework.Application' can not be found.

Would it be possible to allow any partial class that has Application in its inheritance chain have its code injected instead of requiring to be Application directly?

emepetres commented 2 years ago

@LeNitrous thank you for your report, we are looking into it.