error CS0227: Unsafe code may only appear if compiling

Assembly-CSharp.dll' could not be found

error CS0227: Unsafe code may only appear if compiling

错误 CS0227 不安全代码只会在使用 /unsafe 编译的情况下出现 Assembly-CSharp

error CS0227: Unsafe code may only appear if compiling

解决办法

error CS0227: Unsafe code may only appear if compiling

然后选中最后一个选项,勾选Unsafe,然后记得保存

error CS0227: Unsafe code may only appear if compiling