我有一些最初用Visual Studio
编写的C#
代码。
我现在正尝试使用Xamarin Studio
使此代码在Mac
中运行。
我有多个错误,与references
:有关
例如,原始代码使用称为"ClosedXML"
的library
。
我收到一个错误"The type or namespace name
ClosedXML'找不到。是否缺少程序集引用?"`
对于不同的libraries
,我在很多场合都会遇到这样的错误。
任何方式到solve this?
提前感谢
对于每个The type or namespace name xxx could not be found
错误,都必须引用关联的程序集。
例如,必须添加ClosedXML.dll
才能解析ClosedXML
命名空间。它可以通过Nuget-完成
PM> Install-Package ClosedXML
或者直接从这里下载并引用DLL