Forum member

jxnnik

3 posts

Posts by jxnnik

  1. Unable to hash type 'Code' due to exception: System.NotSupportedException: Unknown element type: Var

    That fixed the problem! Thank you very much.

  2. Unable to hash type 'Code' due to exception: System.NotSupportedException: Unknown element type: Var

    Thank you, that works for the basic example I provided! However, in the acutal project the build still fails. I've included a new minimum example that still gives the same exception, when a generic constructor parameter is not the first argument. This does work: [code=csharp][AttributeUsage(A…

  3. Unable to hash type 'Code' due to exception: System.NotSupportedException: Unknown element type: Var

    Hi together, i've tried the provided version 4.19.0.8 in VS2022 but it still does not seem to work. Here is a minimum example for reproducing the issue (same for .NET7 / 8): [code=csharp][AttributeUsage(AttributeTargets.Property)] public sealed class GenericAttribute<T> : Attribute { …