oleg-shilo / cs-script.npp

CS-Script (C# Intellisense) plugin for Notepad++ (x86/x64)
MIT License
246 stars 52 forks source link

How to enable unsafe code #4

Closed RexProg closed 6 years ago

RexProg commented 7 years ago

Hello I am trying to use the unsafe code but it's have error CS0227 ("Unsafe code may only appear if compiling with /unsafe") What is the purpose of this message? What can I do?

csscript is perfect :+1:

oleg-shilo commented 7 years ago

The unsafe is a compiler mode so it is enabled via direct compiler options, which you can pass with //css_co directive.

//css_co /unsafe
using System;
...

BTW, I am glad you like cs-script and I want to let you know that the plugin for VSCode is already available. And in a few days (or so) there will be a major upgrade to it that will bring seamless C# 7 to both Win and Linux.