Results 1 to 5 of 5

Thread: System.Drawing missing in MonoDevelop but present in the documentation?

  1. #1
    Join Date
    May 2009
    Location
    Jacksonville, Florida
    Beans
    113
    Distro
    Ubuntu Development Release

    System.Drawing missing in MonoDevelop but present in the documentation?

    I'm trying to make a thumbnail maker for images, and in order to do that I need to call the System.Drawing and System.Drawing.Imaging namespaces. According to the internal documentation, they are available. According to intellisense and my compiling errors, I don't have them. What can I do to solve this problem?

  2. #2
    Join Date
    Aug 2006
    Location
    Madrid, Spain
    Beans
    299
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: System.Drawing missing in MonoDevelop but present in the documentation?

    It does not suffice to say using System.Drawing; from your code: the System.Drawing namespace is in an assembly different from corlib, so you must instruct the compiler to import it with the "-r" (Reference external assembly) option, or adding it to the "References" section of your project properties in the IDE you are using. If you have ever programmed in Java, this is akin to "importing" an external JAR file.
    May the Source be with you.

  3. #3
    Join Date
    May 2009
    Location
    Jacksonville, Florida
    Beans
    113
    Distro
    Ubuntu Development Release

    Re: System.Drawing missing in MonoDevelop but present in the documentation?

    Quote Originally Posted by Habbit View Post
    It does not suffice to say using System.Drawing; from your code: the System.Drawing namespace is in an assembly different from corlib, so you must instruct the compiler to import it with the "-r" (Reference external assembly) option, or adding it to the "References" section of your project properties in the IDE you are using. If you have ever programmed in Java, this is akin to "importing" an external JAR file.
    I added the reference "mscorlib" in monodevelop, and it's still giving me an error.

  4. #4
    Join Date
    Aug 2006
    Location
    Madrid, Spain
    Beans
    299
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: System.Drawing missing in MonoDevelop but present in the documentation?

    Quote Originally Posted by Jimleko211 View Post
    I added the reference "mscorlib" in monodevelop, and it's still giving me an error.
    If you read my message, I mentioned an assembly different from the core library. In particular, you want System.Drawing.dll
    May the Source be with you.

  5. #5
    Join Date
    May 2009
    Location
    Jacksonville, Florida
    Beans
    113
    Distro
    Ubuntu Development Release

    Re: System.Drawing missing in MonoDevelop but present in the documentation?

    Quote Originally Posted by Habbit View Post
    If you read my message, I mentioned an assembly different from the core library. In particular, you want System.Drawing.dll
    Oh, I'm sorry! I misread it. Thank you so much ^_^

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •