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
With the introduction of generic custom attributes in C# 11.0, the runtime has changed the implementation of custom attribute signatures slightly to support instantiated type parameters. AsmResolver currently does not support this, and crashes upon encountering such a CA signature.
System.Void MetadataAttribute`1<System.Int32>::.ctor(!0)
- Fixed arguments:
Unhandled exception. System.NotSupportedException: Unsupported element type Var in custom attribute argument.
at AsmResolver.ThrowErrorListener.RegisterException(Exception exception)
at AsmResolver.DotNet.Serialized.ModuleReaderContext.RegisterException(Exception exception)
at AsmResolver.ErrorListenerExtensions.NotSupported(IErrorListener self, String message)
at AsmResolver.DotNet.Signatures.CustomAttributeArgumentReader.ReadValue(BlobReaderContext& context, BinaryStreamReader& reader, TypeSignature valueType)
at AsmResolver.DotNet.Signatures.CustomAttributeArgument.FromReader(BlobReaderContext& context, TypeSignature argumentType, BinaryStreamReader& reader)
at AsmResolver.DotNet.Signatures.SerializedCustomAttributeSignature.Initialize(IList`1 fixedArguments, IList`1 namedArguments)
at AsmResolver.DotNet.Signatures.CustomAttributeSignature.EnsureIsInitialized()
at AsmResolver.DotNet.Signatures.CustomAttributeSignature.get_FixedArguments()
at Program.Main(String[] args)
Additional Context
No response
The text was updated successfully, but these errors were encountered:
AsmResolver Version
5.0.0
.NET Version
.NET 7.0
Operating System
Linux
Describe the Bug
With the introduction of generic custom attributes in C# 11.0, the runtime has changed the implementation of custom attribute signatures slightly to support instantiated type parameters. AsmResolver currently does not support this, and crashes upon encountering such a CA signature.
How To Reproduce
Compile and run the following program:
Expected Behavior
Actual Behavior
Additional Context
No response
The text was updated successfully, but these errors were encountered: