无法编译项目-VB.Net-致命错误BC2000-Xamarin/MonoDevelop [英] Can't compile project - VB.Net - Fatal error BC2000 - Xamarin/MonoDevelop
问题描述
只需下载Xamarin/MonoDevelop即可创建基于VB.Net的跨平台应用程序.
Just downloaded Xamarin/MonoDevelop in order to create a VB.Net based cross-platform application.
但是,Xamarin在尝试编译默认模板时始终返回致命错误.
However Xamarin keeps returning a fatal error when attempting to compile a default template.
步骤:
-
文件>新建>解决方案
File > New > Solution
VBNet> Gtk#2.0项目
VBNet > Gtk# 2.0 Project
名称解决方案
点击播放(调试)
结果:
错误致命错误BC2000:编译器初始化意外失败:项目已经具有对程序集系统的引用.不能添加对"C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 \ System.dll"的第二个引用. (致命错误BC2000)(test111)
Error Fatal error BC2000 : compiler initialization failed unexpectedly: Project already has a reference to assembly System. A second reference to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.dll' cannot be added. (Fatal error BC2000 ) (test111)
如果我单击播放",构建",不调试运行/开始"和不调试运行/开始",则会发生上述情况.
The above occurs if I click Play, Build, Run/Start Without Debugging, and Run/Start With Debugging.
在C#Gtk#2.0项目中不会发生上述情况.
The above does not occur with a C# Gtk# 2.0 project.
解决方案"树的引用"文件夹中只有一个对系统的引用.
There is only one reference to System within the References folder in the Solution tree.
任何帮助将不胜感激!
谢谢.
推荐答案
如果您安装Mono并将其设置为运行时(Project/Active Runtime菜单),似乎可以解决此错误.成功.
It seems that you can work around this bug if you install Mono and set it as your runtime (Project / Active Runtime menu), then it will build and run successfully.
这篇关于无法编译项目-VB.Net-致命错误BC2000-Xamarin/MonoDevelop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!