在项目属性里设置配置属性中的 :生成-允许不安全代码块 为true 转载于:https://www.cnblogs.com/songling/archive/2011/02/11/1951363.html