我有一些最初用Visual Studio编写的C#代码。
我现在正在尝试使用Xamarin Studio在Mac中运行这段代码。
我收到了多个错误,这与references有关
例如,原始代码使用一个名为"ClosedXML"的library。
我得到一个错误,无法找到‘"The type or namespace nameClosedXML’。是否缺少程序集引用?“`
对于不同的libraries,我在很多情况下都会遇到这样的错误。
solve this?的任何方式都要提前感谢
发布于 2016-11-19 22:01:57
对于每个The type or namespace name xxx could not be found错误,都必须引用关联的程序集。
例如,您必须添加ClosedXML.dll来解析ClosedXML名称空间。它可以通过Nuget来完成-
PM> Install-Package ClosedXML或者直接从here下载并引用DLL。
https://stackoverflow.com/questions/34401164
复制相似问题