在 Notepad++ 中添加对 CS 脚本的引用

Adding a Reference to a CS-Script in Notepad++

我在 Notepad++ 中使用 CS-Script 得到了合理的结果(我可以创建、编辑、运行 和调试基本的 C# 脚本),但我一定是遗漏了一些东西,因为我找不到方法添加对脚本项目的引用 window.

例如,当我 select "Load script from Current Document" 时,它可以很好地加载常用的参考文献(System.dll、System.Data.dll 等),但是如果我m 包括我自己编写的自定义库(例如 "using MyCompany.Library.EmailHelper")然后我在 CS-Script 项目 window 的引用列表中看不到包含该库的 DLL(因此我可以'为库中的 类 获取任何智能感知)。

在没有参考的情况下,当我尝试构建 CS 脚本时,我在 Notepad++ 输出中遇到许多 The type or namespace name '…' could not be found (are you missing a using directive or an assembly reference?) 错误 window。

除非我遗漏了一些明显的东西,否则我看不出如何通过 Notepad++ 中提供的 CS-Script UI 手动添加引用。

将所有需要的dll文件放在cs文件目录下。

在文件之上写入

//css_args /ac

然后在第一个using下面写

使用 dllName;没有 dll 扩展名。

应该可以。