Unsafe code compilation error in .NET Core even after setting allowunsafe flag to true in project.json

后端 未结 2 1071
攒了一身酷
攒了一身酷 2021-02-12 11:33

I am using some unsafe code in my .NET Core app. For that, I had made this change in the project.json file:



        
2条回答
  •  臣服心动
    2021-02-12 11:43

    Change compilationOptions to buildOptions:

    "buildOptions": {
        "allowUnsafe": true
    }
    

提交回复
热议问题