未找到ExcelReaderFactory.cs [英] ExcelReaderFactory.cs not found

查看:665
本文介绍了未找到ExcelReaderFactory.cs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对c#和visual studio非常新鲜,我在图书馆方面遇到问题。使用nuget我安装了ExcelReaderFactory,所有的工作都应该,我可以看到所有的类等等,但是当我尝试编译我收到一个错误消息ExcelReaderFactory.cs not found。令我困惑的是图书馆是一个.dll,所以为什么甚至找到一个.cs文件?我希望你能为我清除它。谢谢!



解决方案

这是由二进制形式的外部库中发生的未捕获的异常引起的。未捕获的异常导致调试器跳入并尝试找到导致它的代码行,但是由于您没有源代码 ExcelReaderFactory 它会要求。 cs文件(以防万一你有代码的地方)。没有什么可担心的。



这里的解决方案是尝试捕获您的代码中外部库引起的以前未捕获的异常。您可以通过查看输出窗口找到异常的类型。


I'm quite new to c# and visual studio, and I'm having problems with libraries. With nuget I installed "ExcelReaderFactory" and everything work as it should, I can see all the classes and so on, but when I try to compile I get an error message "ExcelReaderFactory.cs not found". The thing that puzzles me is that the library is a .dll, so why is it even looking for an .cs file?? I hope you can clear it for me. Thank you!

解决方案

This is caused by an uncaught exception happening in an external library in binary form. The uncaught exception causes the debugger to jump in and try to find the line of code which caused it but because you don't have the source for ExcelReaderFactory it will ask for the .cs file (just in case you do have the code somewhere). Nothing to worry about.

The solution here is to try to catch the previously uncaught exception caused by your external library inside your code. You can find the type of exception by looking at the Output Window.

这篇关于未找到ExcelReaderFactory.cs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆