1
Vote

CodeSample Compile error with missing references

description

Hi,


I really like the plugin, but could not get the lexer to work ...
One interesting sample I was creating was 'syntax-highlighting' for a error and warning log file.

This was the error I got ... the compiler is obviously started without the references to system.Draw.dll and system.Core.dll.

Errors were encountered when compiling the script 'C:\Program Files\Notepad++\plugins\config\NppSharp\Scripts\Lexer.cs':
  • Line 3: error CS0234: The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing an assembly reference?)
  • Line 4: error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)
    Compiling script: C:\Program Files\Notepad++\plugins\config\NppSharp\Scripts\Test.cs
Regards,


johan

file attachments

comments

Jockebocke wrote Mar 17, 2013 at 3:12 PM

Found it ! In sourceCode ...

Need these prefixes included :

//#reference:System.Core.dll
//#reference:System.Drawing.dll


Cool !