在使用Naudio时,我发现了这段代码。我正在按照以下方式编译它:
csc.exe /reference:Naudio.dll play.cs
您遇到了以下错误:
play.cs(3,14): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)
csc的版本为:C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.EXE
在查找解决方法时,我发现需要添加 System.core
引用,但是使用类似于 /reference:System.core.dll
或者 /reference:System.core
的命令并不能解决问题。