I am using some unsafe code in my .Net core App. For that i had made this change in the project.json file
"compilationOptions": {
"allowUnsafe": true,
}
Still this error comes error CS0227: Unsafe code may only appear if compiling with /unsafe
I had already gone through this already
Change
compilationOptions
tobuildOptions
:In the newer
*.csproj
files, this is now:in any
PropertyGroup
.