Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#编译未知MSBuild错误MonoDevelop Linux_C#_Linux_Msbuild_Mono - Fatal编程技术网

C#编译未知MSBuild错误MonoDevelop Linux

C#编译未知MSBuild错误MonoDevelop Linux,c#,linux,msbuild,mono,C#,Linux,Msbuild,Mono,我刚开始在linux上学习c#,我正在使用monodevelop ide,我在编译c#文件“未知MSBuild错误”时遇到了这个错误 这是我的代码: using System; namespace Application { public class EmptyClass { public static void Main(){ Console.WriteLine ("aaaaaa"); } } } 这是我最后的

我刚开始在linux上学习c#,我正在使用monodevelop ide,我在编译c#文件“未知MSBuild错误”时遇到了这个错误

这是我的代码:

using System;

namespace Application
{
    public class EmptyClass
    {
        public static void Main(){
            Console.WriteLine ("aaaaaa");
        }
    }
}
这是我最后的日志:

INFO [2016-05-11 22:06:07Z]: Starting MonoDevelop 5.10.1
INFO [2016-05-11 22:06:07Z]: Running on Mono 4.4.0 (Stable 4.4.0.40/f8474c4 Mon Mar 28 12:22:29 UTC 2016) (64-bit)
INFO [2016-05-11 22:06:07Z]: Operating System: Linux
Linux ardi 4.5.3-1-ARCH #1 SMP PREEMPT Sat May 7 20:43:57 CEST 2016 x86_64 GNU/Linux
INFO [2016-05-11 22:06:07Z]: Using GTK+ 2.24.30
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.Core
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.Ide
WARNING [2016-05-11 22:06:07Z]: No proxy credential provider was found
INFO [2016-05-11 22:06:07Z]: Initializing Runtime Mono 4.4.0
Starting MonoDevelop
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.GnomePlatform
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.VBBinding
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.Debugger
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.SourceEditor2
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.TextTemplating
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.DesignerSupport
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.Xml
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.AspNet
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.Refactoring
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.CSharpBinding
INFO [2016-05-11 22:06:07Z]: Add-in loaded: MonoDevelop.VersionControl
WARNING [2016-05-11 22:06:07Z]: Inotify watch limit is too low (8192).
MonoDevelop will switch to managed file watching.
See http://monodevelop.com/Inotify_Watches_Limit for more info.
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.PackageManagement
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.GtkCore
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.Deployment
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.WebReferences
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.NUnit
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.Deployment.Linux
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.CBinding
   Memuat Workbench
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.DocFood
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.RegexToolkit
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.AssemblyBrowser
INFO [2016-05-11 22:06:08Z]: Add-in loaded: MonoDevelop.VersionControl.Git
      Initializing Jendela Utama
INFO [2016-05-11 22:06:08Z]: Creating DefaultWorkbench
INFO [2016-05-11 22:06:09Z]: Updating Welcome Page from 'http://software.xamarin.com/Service/News'.
WARNING [2016-05-11 22:06:09Z]: Welcome Page news server could not be reached.
ERROR [2016-05-11 22:06:09Z]: Monodoc documentation tree could not be loaded.
System.IO.FileNotFoundException: Could not find file "/usr/lib/monodoc/monodoc.xml".
File name: '/usr/lib/monodoc/monodoc.xml'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x7fd08b93f270 + 0x005ca> in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) <0x7fd08b93ef30 + 0x0004d> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
  at System.Xml.XmlDownloadManager.GetStream (System.Uri uri, ICredentials credentials, IWebProxy proxy, System.Net.Cache.RequestCachePolicy cachePolicy) <0x412d1900 + 0x0009e> in <filename unknown>:0 
  at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) <0x412d1720 + 0x00087> in <filename unknown>:0 
  at System.Xml.XmlTextReaderImpl.OpenUrlDelegate (System.Object xmlResolver) <0x41379960 + 0x00060> in <filename unknown>:0 
  at System.Xml.XmlTextReaderImpl.OpenUrl () <0x41379670 + 0x00127> in <filename unknown>:0 
INFO [2016-05-11 22:06:09Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion
INFO [2016-05-11 22:06:09Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion.Unix
INFO [2016-05-11 22:06:12Z]: Add-in loaded: MonoDevelop.ILAsmBinding
INFO [2016-05-11 22:06:13Z]: Add-in loaded: MonoDevelop.HexEditor
ERROR [2016-05-11 22:06:19Z]: RunTarget failed
System.Exception: MSBuild operation failed

Server stack trace: 
  at MonoDevelop.Projects.Formats.MSBuild.BuildEngine.RunSTA (System.Threading.ThreadStart ts) <0x41a5c2e0 + 0x003cf> in <filename unknown>:0 
  at MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder.Run (MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[] configurations, ILogWriter logWriter, MSBuildVerbosity verbosity, System.String[] runTargets, System.String[] evaluateItems, System.String[] evaluateProperties, System.Collections.Generic.Dictionary`2 globalProperties) <0x41a5e3a0 + 0x002b3> in <filename unknown>:0 
  at (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg) <0x7f5c2b163e20 + 0x0026c> in <filename unknown>:0 

Exception rethrown at [0]: 
 ---> System.ArgumentException: path string must not be an empty string or whitespace string
  at System.IO.Directory.SetCurrentDirectory (System.String path) <0x7f5c2b0ce110 + 0x00085> in <filename unknown>:0 
  at System.Environment.set_CurrentDirectory (System.String value) <0x7f5c2b0bc300 + 0x0000c> in <filename unknown>:0 
  at MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder.SetupProject (MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[] configurations) <0x41a60430 + 0x001cb> in <filename unknown>:0 
  at MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder+<Run>c__AnonStorey1.<>m__0 () <0x41a5e830 + 0x000c3> in <filename unknown>:0 
  at MonoDevelop.Projects.Formats.MSBuild.BuildEngine.STARunner () <0x41a5c8c0 + 0x00084> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_remoting_wrapper (intptr,intptr)
  at (wrapper remoting-invoke) MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder:Run (MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[],MonoDevelop.Projects.Formats.MSBuild.ILogWriter,MonoDevelop.Projects.Formats.MSBuild.MSBuildVerbosity,string[],string[],string[],System.Collections.Generic.Dictionary`2<string, string>)
  at MonoDevelop.Projects.Formats.MSBuild.RemoteProjectBuilder.Run (MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[] configurations, ILogWriter logWriter, MSBuildVerbosity verbosity, System.String[] runTargets, System.String[] evaluateItems, System.String[] evaluateProperties, System.Collections.Generic.Dictionary`2 globalProperties) <0x416f08d0 + 0x00082> in <filename unknown>:0 
INFO[2016-05-11 22:06:07Z]:启动MonoDevelop 5.10.1
信息[2016-05-11 22:06:07Z]:在Mono 4.4.0上运行(稳定的4.4.0.40/f8474c4 Mon Mar 28 12:22:29 UTC 2016)(64位)
信息[2016-05-11 22:06:07Z]:操作系统:Linux
Linux ardi 4.5.3-1-ARCH#1 SMP抢占Sat 5月7日20:43:57 CEST 2016 x86_64 GNU/Linux
信息[2016-05-11 22:06:07Z]:使用GTK+2.24.30
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.Core
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.Ide
警告[2016-05-11 22:06:07Z]:未找到代理凭据提供程序
信息[2016-05-11 22:06:07Z]:初始化运行时Mono 4.4.0
启动单一开发
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.GnomePlatform
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.VBBinding
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.Debugger
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.SourceEditor2
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.text模板
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.DesignerSupport
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.Xml
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.AspNet
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.重构
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.CSharpBinding
信息[2016-05-11 22:06:07Z]:加载的加载项:MonoDevelop.VersionControl
警告[2016-05-11 22:06:07Z]:Inotify watch limit过低(8192)。
MonoDevelop将切换到托管文件监视。
看见http://monodevelop.com/Inotify_Watches_Limit 更多信息。
信息[2016-05-11 22:06:08Z]:加载的加载项:MonoDevelop.PackageManagement
信息[2016-05-11 22:06:08Z]:加载的加载项:MonoDevelop.GtkCore
信息[2016-05-11 22:06:08Z]:加载的外接程序:MonoDevelop.Deployment
信息[2016-05-11 22:06:08Z]:加载的加载项:MonoDevelop.WebReferences
信息[2016-05-11 22:06:08Z]:加载的加载项:MonoDevelop.NUnit
信息[2016-05-11 22:06:08Z]:加载的加载项:MonoDevelop.Deployment.Linux
信息[2016-05-11 22:06:08Z]:加载的加载项:MonoDevelop.CBinding
Memuat工作台
信息[2016-05-11 22:06:08Z]:加载的加载项:MonoDevelop.DocFood
信息[2016-05-11 22:06:08Z]:加载的加载项:MonoDevelop.regextolkit
信息[2016-05-11 22:06:08Z]:加载的加载项:MonoDevelop.AssemblyBrowser
信息[2016-05-11 22:06:08Z]:加载的加载项:MonoDevelop.VersionControl.Git
尤塔玛珍德拉酒店
信息[2016-05-11 22:06:08Z]:创建DefaultWorkbench
信息[2016-05-11 22:06:09Z]:从更新欢迎页面'http://software.xamarin.com/Service/News'.
警告[2016-05-11 22:06:09Z]:无法访问欢迎页面新闻服务器。
错误[2016-05-11 22:06:09Z]:无法加载Monodoc文档树。
System.IO.FileNotFoundException:找不到文件“/usr/lib/monodoc/monodoc.xml”。
文件名:'/usr/lib/monodoc/monodoc.xml'
位于:0中的System.IO.FileStream..ctor(System.String路径、FileMode模式、FileAccess访问、FileShare共享、Int32 bufferSize、布尔匿名、FileOptions选项)
位于:0中的System.IO.FileStream..ctor(System.String路径、FileMode模式、FileAccess访问、FileShare共享、Int32 bufferSize)
在(带检查的包装器远程调用)System.IO.FileStream:.ctor(字符串、System.IO.FileMode、System.IO.FileAccess、System.IO.FileShare、int)
位于:0中的System.Xml.XmlDownloadManager.GetStream(System.Uri Uri、ICredentials凭据、IWebProxy代理、System.Net.Cache.RequestCachePolicy cachePolicy)
位于:0中的System.Xml.XmlUrlResolver.GetEntity(System.Uri绝对Uri、System.String角色、System.Type of Object ToReturn)
位于:0中的System.Xml.XmlTextReaderImpl.OpenUrlDelegate(System.Object xmlResolver)处
位于:0中的System.Xml.XmlTextReaderImpl.OpenUrl()处
信息[2016-05-11 22:06:09Z]:加载的加载项:MonoDevelop.VersionControl.Subversion
信息[2016-05-11 22:06:09Z]:加载的加载项:MonoDevelop.VersionControl.Subversion.Unix
信息[2016-05-11 22:06:12Z]:加载的加载项:MonoDevelop.ilasbinding
信息[2016-05-11 22:06:13Z]:加载的加载项:MonoDevelop.HexEditor
错误[2016-05-11 22:06:19Z]:运行目标失败
System.Exception:MSBuild操作失败
服务器堆栈跟踪:
位于:0中的MonoDevelop.Projects.Formats.MSBuild.BuildEngine.RunSTA(System.Threading.ThreadStart ts)处
在MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder.Run(MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[]配置、ILogWriter日志编写器、MSBuildVerbosity详细信息、System.String[]运行目标、System.String[]评估项、System.String[]评估属性、System.Collections.Generic.Dictionary`2全局属性)年:0
at(包装器管理为本机)System.Runtime.Remoting.RemotingServices:InternalExecute(System.Reflection.MethodBase,object,object[],object[&)
位于以下位置的System.Runtime.Remoting.RemotingServices.InternalExecuteMessage(System.MarshallByRefObject目标,IMethodCallMessage reqMsg):0
在[0]处重试异常:
--->System.ArgumentException:路径字符串不能为空字符串或空白字符串
位于:0中的System.IO.Directory.SetCurrentDirectory(System.String路径)
在System.Environment.set_CurrentDirectory(System.String值)中:0
位于以下位置的MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder.SetupProject(MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[]配置):0
在:0中的MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder+c_uanonostorey1.m_u0()处
位于:0中的MonoDevelop.Projects.Formats.MSBuild.BuildEngine.STARunner()处
---内部异常堆栈跟踪的结束---
at(wrapper managed to native)System.Object:\uuuIcall\uwrapper\uMono\uRemoting\uwrapper(intptr,intptr)
在(包装器远程处理调用)MonoDevelop.Projects.Formats.MSBuild.ProjectBuilder:Run(MonoDevelop.Projects.Formats.MSBuild.ProjectConfigurationInfo[],MonoDevelop.Projects.Form