DeepCopy icon indicating copy to clipboard operation
DeepCopy copied to clipboard

Common Language Runtime detected an invalid program net6.0

Open RussellMcDonnell opened this issue 3 years ago • 2 comments

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 ---

RussellMcDonnell avatar Feb 25 '22 19:02 RussellMcDonnell

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

ReubenBond avatar Feb 25 '22 19:02 ReubenBond