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
We only discovered this because between .NET Framework 4.8 and .NET 6, calling DateTime.UtcNow invokes unsafe code.
The question is now: how to translate this call?
From what I can gather we have only a metadata signature token (32 bit) and we must somehow use that to resolve and call the correct method (as identified by the token).
UPDATE 2024-06-03: The issue with DateTime.UtcNow only manifests if it is invoked without there existing a shim for it. That is, we can shim the method without issues. However, if we do not shim the method, rewriting it fails.
The text was updated successfully, but these errors were encountered:
We only discovered this because between .NET Framework 4.8 and .NET 6, calling
DateTime.UtcNow
invokes unsafe code.The question is now: how to translate this call?
From what I can gather we have only a metadata signature token (32 bit) and we must somehow use that to resolve and call the correct method (as identified by the token).
UPDATE 2024-06-03: The issue with
DateTime.UtcNow
only manifests if it is invoked without there existing a shim for it. That is, we can shim the method without issues. However, if we do not shim the method, rewriting it fails.The text was updated successfully, but these errors were encountered: