2015-11-02 138 views
0

我使用.NET 3.5和mono 2.2.1構建可在ubuntu 10.04上支持的應用程序。基本上我們將以前使用.NET 4.0構建的應用程序降級到.NET 3.5。該應用程序需要使用命名空間System.IO.Pipes。但是,我收到錯誤 -.NET 3.5-命名空間中不存在管道類型或名稱空間System.IO

類型或名稱空間Pipes' does not exist in the namespace System.IO'。您是否缺少裝配參考?

我無法弄清楚問題是單聲道版本(2.2.1)還是.NET版本(3.5)或Ubuntu版本(10.04)。

另外,是否有任何替代使用NamedPipeServerStream

+0

我認爲在.NET 3.5中有一個'System.IO.Pipes'命名空間。請參閱https://msdn.microsoft.com/en-us/library/system.io.pipes(v=vs.90).aspx我認爲問題是單聲道版本 – Sweeper

回答

1

快速瀏覽一下Mono的更新日誌的System.IO.Pipes顯示:

2009-08-18淳榎本

  • AnonymousPipeClientStream.cs,AnonymousPipeServerStream.cs,
    NamedPipeClientStream。 cs,NamedPipeServerStream.cs
    PipeAccessRights.cs,......

,然後檢查單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 

因此單2.2.1(2009-03-11間和2009-05-06)不包含您需要的命名空間因爲它直到2009-08-18才被添加。

相關問題