【问题标题】:.NET 3.5- The type or namespace `Pipes does not exist in the namespace System.IO.NET 3.5-命名空间 System.IO 中不存在类型或命名空间`管道
【发布时间】:2015-11-02 05:05:15
【问题描述】:
我正在使用 .NET 3.5 和 mono 2.2.1 来构建一个可以在 ubuntu 10.04 上支持的应用程序。基本上,我们正在将以前使用 .NET 4.0 构建的应用程序降级到 .NET 3.5。应用程序需要使用命名空间System.IO.Pipes。但是我遇到了一个错误-
类型或命名空间Pipes' does not exist in the namespace
System.IO'。您是否缺少程序集参考?
我不知道问题出在单声道版本 (2.2.1) 还是 .NET 版本 (3.5) 或 Ubuntu 版本 (10.04) 上。
另外,有没有什么可以替代NamedPipeServerStream?
【问题讨论】:
标签:
c#
.net
mono
ubuntu-10.04
【解决方案1】:
快速查看 System.IO.Pipes 的 Mono 更改日志显示:
2009-08-18 榎本笃
- AnonymousPipeClientStream.cs、AnonymousPipeServerStream.cs、
NamedPipeClientStream.cs、NamedPipeServerStream.cs
PipeAccessRights.cs,......
然后检查 Mono 2.x 的分支日期:
git for-each-ref --sort=committerdate refs/remotes/origin/ --format='%(committerdate:short) %(refname:short)' | grep mono-2
2009-03-11 origin/mono-2-2
2009-05-06 origin/mono-2-4-1
2010-08-23 origin/mono-2-4-3
2011-03-23 origin/mono-2-0
2011-03-23 origin/mono-2-4
2011-03-23 origin/mono-2-4-0
2011-03-23 origin/mono-2-4-2
2011-03-23 origin/mono-2-6-4
2011-03-23 origin/mono-2-6-7
2011-05-06 origin/mono-2-8
2011-07-25 origin/mono-2-6
2012-03-19 origin/mono-2-10-8
2012-04-26 origin/mono-2-10-9
2012-11-16 origin/origin/mono-2-6
2013-10-21 origin/mono-2-10
因此 Mono 2.2.1(2009-03-11 和 2009-05-06 之间)不包含您需要的命名空间,因为它直到 2009-08-18 才添加。