Why do I get the error “Unsafe code may only appear if compiling with /unsafe”?

前端 未结 6 2131
猫巷女王i
猫巷女王i 2020-12-12 15:13

Why do I get the following error?

Unsafe code may only appear if compiling with /unsafe\"?

I work in C# and Visual Studio 2008 f

6条回答
  •  爱一瞬间的悲伤
    2020-12-12 15:58

    Probably because you're using unsafe code.

    Are you doing something with pointers or unmanaged assemblies somewhere?

提交回复
热议问题