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
In v11.35.1, OneSpanSign.Sdk.Internal.ApplicationLogger no longer seems to work because the trace compiler constant is missing.
I suspect, but did not validate, this setting went missing during the upgrade to netstandard. The visual studio project type for netstandard doesn't have an obvious way to set this, and it seems to be set by default back in the full .net framework days.
specifying the option /d:TRACE when compiling OSS SDK code.
I didn't check the code on versions newer than v11.35.1, because those tags aren't available.
In case you're curious what's going on behind the scenes, here is what ApplicationLogger looks like when decompiled, and TRACE is not defined. Notice all the empty methods.
Here is what ApplicationLogger looks like when decompiled, and TRACE is defined. Notice methods arent empty.
Here is the quick and dirty fix I used so I could move forward.
The text was updated successfully, but these errors were encountered:
In v11.35.1, OneSpanSign.Sdk.Internal.ApplicationLogger no longer seems to work because the trace compiler constant is missing.
I suspect, but did not validate, this setting went missing during the upgrade to netstandard. The visual studio project type for netstandard doesn't have an obvious way to set this, and it seems to be set by default back in the full .net framework days.
According to Microsoft, there are 2 ways to fix the issue:
#define TRACE
to OSS SDK code./d:TRACE
when compiling OSS SDK code.I didn't check the code on versions newer than v11.35.1, because those tags aren't available.
In case you're curious what's going on behind the scenes, here is what ApplicationLogger looks like when decompiled, and TRACE is not defined. Notice all the empty methods.
Here is what ApplicationLogger looks like when decompiled, and TRACE is defined. Notice methods arent empty.
Here is the quick and dirty fix I used so I could move forward.
The text was updated successfully, but these errors were encountered: