monodevelop not recognizing installed mono libraries

Bug #202932 reported by foofboy
6
Affects Status Importance Assigned to Milestone
monodevelop (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: monodevelop

Have written a program utilizing the System.Xml library. When attempting to build this program under monodevelop, the build fails, and the error message "The type or namespace name `Xml' does not exist in the namespace `System'."

However, the same program compiles successfully when using the "mcs" compiler directly.

I have attached a sample program which reliably reproduces the bug.

I am using an up to date version of 'Hardy Heron'

The bug occurs in monodevelop version 0.18.1+dfsg-1ubuntu2.

i386 distribution on an Athlon64 box.

Revision history for this message
foofboy (robert-sherwood) wrote :
Revision history for this message
foofboy (robert-sherwood) wrote :

Have verified through Help -> About -> Version Info that System.Xml is recognized by monodevelop. The path listed by the UI is correct, as well, and points to version 2 of the System.Xml dll. I'm well and truly baffled.

Revision history for this message
Ghost (ghosthunter) wrote :

Not sure about your version, but in version 1.0, you have to add System.Xml to your Project's reference before being able to compile this.

In the 'Solutions' tab, Right-click on References->Edit References...
In the following dialog, tick the checkbox next to the System.Xml-assebly in the list.

Revision history for this message
Chris Jones (cmsj) wrote :

Ghost: checking that box makes this work for me. Is that the correct behaviour? If so then I suppose this bug is invalid.

Revision history for this message
Ben Rousch (brousch) wrote :

This is the normal behavior for Monodevelop. You need to have the assembly listed in your project's References before it will work correctly.

Changed in monodevelop:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.