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
Error UnsafeAccessorNotAvailable is not emitted when trying to use UnsafeAccessors in .NET 7 and below. The code to emit this is dependant on the Roslyn version via a pre-proccessor constant.
Perhaps a more recent Roslyn version pre prccessor constant could be used. Otherwise the diagnostic could be emitted if the UnsafeAccessorAttribute cannot be found. This would have the added benefit of supporting the polyfilled attribute.
Error
UnsafeAccessorNotAvailable
is not emitted when trying to useUnsafeAccessors
in .NET 7 and below. The code to emit this is dependant on the Roslyn version via a pre-proccessor constant.Perhaps a more recent Roslyn version pre prccessor constant could be used. Otherwise the diagnostic could be emitted if the
UnsafeAccessorAttribute
cannot be found. This would have the added benefit of supporting the polyfilled attribute.See #732
The text was updated successfully, but these errors were encountered: