SolidAlloy / SolidUtilities

Different utilities that simplify development in Unity3D.
Other
30 stars 20 forks source link

The name 'Unsafe' does not exist in the current context #4

Closed ppStarLightShadows closed 2 years ago

ppStarLightShadows commented 2 years ago

This error happens immediately upon installing the package(at least via git URL) even in a completely new project.

Library\PackageCache\com.solidalloy.util@ec8132ef6d\Runtime\Extensions\SpanExtensions.cs(42,46): error CS0103: The name 'Unsafe' does not exist in the current context

SolidAlloy commented 2 years ago

Hi, thanks for reporting the issue. I hid the reference to Unsafe under a preprocessor directive, so it mustn't fail if System.Runtime.CompilerServices is not installed. I've also changed the installation instructions for TypeReferences, so issues like this shouldn't happen anymore.