Bug 12080 - Can't compile project - VB.Net - Fatal error BC2000 - Xamarin/MonoDevelop
Summary: Can't compile project - VB.Net - Fatal error BC2000 - Xamarin/MonoDevelop
Status: NEW
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: VB.Net Binding ()
Version: 4.0.3
Hardware: PC Windows
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-05-02 16:34 UTC by cc
Modified: 2013-05-02 16:34 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 12080 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description cc 2013-05-02 16:34:10 UTC
Just downloaded Xamarin/MonoDevelop in order to create a VB.Net based cross-platform application.

However Xamarin keeps returning a fatal error when attempting to compile a default template.

Steps:

1. File > New > Solution

2. VBNet > Gtk# 2.0 Project

3. Name solution

4. Click Play (Debug)

Results:

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.

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.

---

This issue is being caused by having Project > Active Runtime > Microsoft .Net selected.

When Project > Active Runtime > Mono 2.10.9 is selected the issue does not occur.