DeepCopy
DeepCopy copied to clipboard
Common Language Runtime detected an invalid program net6.0
I have a series of tests that I run and build against net6.0, net5.0 and netcoreapp3.1 but DeepCopy is only failing on net6.0
This issue seems to be around trying to copy an IEnumerable or an object that contains an IEnumerable.
Message: System.InvalidProgramException : Common Language Runtime detected an invalid program.
Stack Trace: EnumeratorDeepCopier(Enumerator , CopyContext ) SelectListIterator2DeepCopier(IEnumerable1 , CopyContext ) CopierGenerator`1.Copy(T original, CopyContext context) DeepCopier.Copy[T](T original) Tokenizer.TokenizeAsync[T](T objectWithSensitiveData) TokenizerTests.Tokenize_IEnumberableObject() line 151 --- End of stack trace from previous location ---
Hi Russell, this package is not supported and hasn't been updated in a long time. I'm not sure what the issue might be, but perhaps there were some IL changes in .NET 6.0