我正在使用ScintillaNET作为Scintilla控件的包装器。 我已经编辑了一个词法分析器并想尝试查看更改是否有效,但问题是我不知道它在我的计算机上使用了哪个SciLexer.dll文件。 应用程序目录中的那个似乎没有什么区别。
所以我的问题基本上是,如何知道我的应用程序正在使用哪个SciLexer.dll文件以及如何将其设置为使用应用程序目录中的文件?
I am using ScintillaNET a wrapper of the Scintilla control. I've edited the a lexer a bit and would like to try and see if the changes work, but the problem is I don't know which SciLexer.dll file it's using on my computer. The one in the application's directory did not seem to make a difference.
So my question is basically, how do I know which SciLexer.dll file my application is using and how can I set it to use the one in the application's directory?
最满意答案
使用Visual Studio,检查项目引用的DLL:
打开项目/解决方案后,展开解决方案资源管理器中的“引用”文件夹,找到当前引用的SciLexer.dll的名称。
双击相关组件以在对象浏览器中显示它。
在对象浏览器的右下方窗格中,您将看到磁盘上指向项目引用的特定DLL的完整路径。
这是您需要更改/更新的DLL。 或者,您可以删除现有引用,并将新的引用添加到您希望应用程序使用的目录中的DLL。
Using Visual Studio, check to see which DLL your project references:
With your project/solution open, expand the "References" folder in the Solution Explorer, and locate the name of the SciLexer.dll you are currently referencing.
Double-click on the relevant assembly to display it in the Object Browser.
In the bottom-right pane of the Object Browser, you will see the full path on disk to the specific DLL that your project is referencing.
This is the DLL that you need to change/update. Or, you could remove the existing reference and add a new one to the DLL in the directory that you want your application to use.
更多推荐
发布评论