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

前端 未结 6 2142
猫巷女王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 16:03

    Search your code for unsafe blocks or statements. These are only valid is compiled with /unsafe.

提交回复
热议问题