How to resolve this error in VS2012 "Unsafe code may only appear if compiling with /unsafe”? I am not compiling from the command-line so I cannot simply add /unsafe. How can I compile unsafe code in VS2012?
In Visual Studio for Mac, right click the project in the Solution window and select Options. In the Project Options window select Build - General. On that page there should be the allow unsafe code check box. Thank you for your feedback!
Right click on your project. Select "Properties". Switch to the "Build" tab. Check "Allow unsafe code".
Open project properties
, select Build
tab and click on Allow unsafe code
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With