Linux下Mono编译出现错误

头回在Linux下编译CS工程。操作系统Ubuntu 12.04LTS,32bit,Mono V2.8.10。

这是一个简单的unzip例子。

using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Packaging;
using System.Reflection;
using System.Windows.Forms;

namespace ZipHelper
{
......
}

编译后报错:

unzip.cs(4,17): error CS0234: The type or namespace name `Packaging' does not exist in the namespace `System.IO'. Are you missing an assembly reference?
unzip.cs(6,14): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
Compilation failed: 2 error(s), 0 warnings

是否是因为Mono的版本太低?
在Mono中移植Windows中的CS是否靠谱?

总的设计任务是,将压缩文件解压缩,提取CSV表格数据进行分析,然后进行PDF报表生成。如果不行,我考虑还是使用Python来做了。

阅读 2.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进