windows - 在 Windows 上构建 MonoDevelop 7.2.x 失败

标签 windows mono monodevelop

我尝试使用 Visual Studio 2017 在 Windows 10 上构建 MonoDevelop 7.2.x,不幸的是遇到了一些问题。

我按照官方主页 (http://www.monodevelop.com/developers/building-monodevelop/) 上的说明安装了所有必需的依赖项。

我下载了发布 zip 文件 ( https://github.com/mono/monodevelop/archive/monodevelop-7.2.0.583.zip ) 并解压缩。

我打开 Main.sln Visual Studio 解决方案并尝试构建,不幸的是 VS 提示有很多丢失的引用或无法找到的东西,例如“命名空间中不存在类型或命名空间名称‘NRefactory’” ICSharpCode'”。

我还使用 git 克隆存储库尝试了 winbuild.bat。这也不起作用,因为为 MSBuild 提供了不受支持的命令行开关。

这里有人能够在 Windows 上成功构建 MonoDevelop 7.x 吗?如果是,怎么做?

2>F:\Development\monodevelop-monodevelop-7.2.0.583\main\contrib\ICSharpCode.Decompiler\Ast\Annotations.cs(5,19,5,29): error CS0234: The type or namespace name 'NRefactory' does not exist in the namespace 'ICSharpCode' (are you missing an assembly reference?)
2>F:\Development\monodevelop-monodevelop-7.2.0.583\main\contrib\ICSharpCode.Decompiler\Ast\AstBuilder.cs(33,19,33,29): error CS0234: The type or namespace name 'NRefactory' does not exist in the namespace 'ICSharpCode' (are you missing an assembly reference?)
2>F:\Development\monodevelop-monodevelop-7.2.0.583\main\contrib\ICSharpCode.Decompiler\Ast\AstBuilder.cs(34,19,34,29): error CS0234: The type or namespace name 'NRefactory' does not exist in the namespace 'ICSharpCode' (are you missing an assembly reference?)
2>F:\Development\monodevelop-monodevelop-7.2.0.583\main\contrib\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs(28,19,28,29): error CS0234: The type or namespace name 'NRefactory' does not exist in the namespace 'ICSharpCode' (are you missing an assembly reference?)
2>F:\Development\monodevelop-monodevelop-7.2.0.583\main\contrib\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs(29,19,29,29): error CS0234: The type or namespace name 'NRefactory' does not exist in the namespace 'ICSharpCode' (are you missing an assembly reference?)
2>F:\Development\monodevelop-monodevelop-7.2.0.583\main\contrib\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs(30,19,30,29): error CS0234: The type or namespace name 'NRefactory' does not exist in the namespace 'ICSharpCode' (are you missing an assembly reference?)

这是完整的构建日志:https://pastebin.com/p6c8miC9

最佳答案

我知道现在已经很晚了,但万一有人遇到类似问题,下面是我设法构建它的方法。

在您的情况下,问题似乎是您缺少该存储库中的子模块。您必须使用 --recursive 参数进行克隆。旧的 monodevelop 构建说明页面错误地将其显示为 -recursive(缺少一个连字符)并且它仍然缺少一些额外的信息。

要成功构建 modevelop,首先您必须下载安装最新版本的 Visual Studio 2017 并安装 Universal Windows Platform development、.NET desktop development 和 .NET Core cross-platform 下的几乎所有内容开发 工作负载。然后使用 winbuild.bat 构建它。我无法使用 Visual Studio IDE 进行构建。

希望这对您有所帮助。

关于windows - 在 Windows 上构建 MonoDevelop 7.2.x 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46183630/

相关文章:

python - 为什么 python27.dll 不是 python 安装文件夹的一部分,而是在 Windows 系统文件夹中

c# - 未找到 Mono Droid onClick 事件

xamarin.ios - 单触式许可证

CodeRunner 2 中的 C# 汇编

asp.net - 文件 -> 在 MonoDevelop 中打开网站?

macos - MonoMac Create Mac Installer 导致 Merging Mono Failed。致命的未处理异常

c# - 始终运行的 Windows 程序

windows - NSIS 自动和静默更新

windows - 调整 CMD 窗口大小

macos - MonoDevelop 的 ~/.config/MonoDevelop/在哪里