ssg / SimpleBase

.NET library for encoding/decoding Base16, Base32, Base58 and Base85.
Apache License 2.0
147 stars 21 forks source link

Dependence on System.Memory? #6

Closed NPC closed 6 years ago

NPC commented 6 years ago

Thanks for the package, trying to figure it out. After adding and calling (a Base32 method), I get a compile error:

CS0012 The type 'ReadOnlySpan<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Memory, ...'

It does not seem to be a standard assembly (unless I miss something — I'm using ASP.NET, not Core), and I am cautious adding more packages than I have to — especially since it's not mentioned in the readme.

ssg commented 6 years ago

Hi @NPC,

System.Memory is an external package distributed by Microsoft.

What IDE and Framework version are you trying it on so I can reproduce the same problem?

NPC commented 6 years ago

Hi @ssg, thanks for responding! It's on Visual Studio Community 2017, with ASP.NET MVC v5.2.3.

ssg commented 6 years ago

I resolved this issue in a newer version of the package (1.6.1). You can update it on NuGet and get rid of the compile errors. Thanks for reporting!

NPC commented 6 years ago

Great, thank you very much!