C# 4.0 如何在Mono(xbuild)中获得C#4.0?
我有一个使用msbuild的.NET项目,我想尝试在Mono中构建它。我可以很好地构建它的一些琐碎目标,但是如果我尝试完整编译,它就会失败 我不确定有多少输出是相关的,但这是第一行看起来很麻烦的内容:C# 4.0 如何在Mono(xbuild)中获得C#4.0?,c#-4.0,msbuild,mono,C# 4.0,Msbuild,Mono,我有一个使用msbuild的.NET项目,我想尝试在Mono中构建它。我可以很好地构建它的一些琐碎目标,但是如果我尝试完整编译,它就会失败 我不确定有多少输出是相关的,但这是第一行看起来很麻烦的内容: Target GetFrameworkPaths: /usr/lib/mono/3.5/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.0' not supported by this toolset (ToolsVe
Target GetFrameworkPaths:
/usr/lib/mono/3.5/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.0' not supported by this toolset (ToolsVersion: 4.0).
及
及
我正在运行最新的Debian。据介绍,“dmcs”是4.0编译器。我根本没有太多使用Mono/xbuild——编译C#4.0项目需要什么特殊的东西吗?谢谢 Sid仍然有Mono 2.6,您可能需要Mono 2.10(实验版)
Target ResolveAssemblyReferences:
/usr/lib/mono/3.5/Microsoft.Common.targets: warning : Reference 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' not resolved
/usr/lib/mono/3.5/Microsoft.CSharp.targets: error : Error executing tool '/usr/bin/dmcs': ApplicationName='/usr/bin/dmcs', CommandLine='/noconfig @/tmp/tmp4749932e.tmp', CurrentDirectory='/home/ken/foo/bar'
Task "Csc" execution -- FAILED