I don't know where to start. My build fails in Release mode. Error message is:
SGEN : error : Method 'ExecuteAuthorizationFilterAsync' in type 'Api.Attributes.ModuleAuthorizeAttribute' from assembly 'Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
It obviously does have an implementation, it builds until the sgen task. (And in Debug mode it totally builds, since there is no sgen.)
While I could change build options like here I'd rather get to the source of the problem and not disable optimization.
Also tried to make a small app to reproduce the problem but failed, and uploading this app is not an option. It's huge and not mine to share.