ZstdSharp icon indicating copy to clipboard operation
ZstdSharp copied to clipboard

Unity 2022.3.19,Cannot resolve symbol 'Shared'

Open vinsonzou opened this issue 10 months ago • 3 comments

IL2CPP .Net Fromework

outputBuffer = ArrayPool<byte>.Shared.Rent(outputBufferSize);

Unity Console error output

error CS0117: 'ArrayPool<byte>' does not contain a definition for 'Shared'

vinsonzou avatar Apr 09 '24 06:04 vinsonzou

ArrayPool<byte> is contained in System.Buffers package

oleg-st avatar Apr 09 '24 13:04 oleg-st

ArrayPool<byte> is contained in System.Buffers package

.Net Framework not support ArrayPool.Shared

vinsonzou avatar Apr 11 '24 06:04 vinsonzou

You need to use the System.Buffers nuget package to add ArrayPool.Shared to the .NET Framework

oleg-st avatar Jul 05 '24 08:07 oleg-st