SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Not finding Mono 1.1 or 2.0 as targets

Last post 11-10-2008 1:24 PM by bmahf. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 11-09-2008 12:58 AM

    • bmahf
    • Not Ranked
    • Joined on 11-09-2008
    • Posts 3

    Not finding Mono 1.1 or 2.0 as targets

    Hi, I'm a complete newbie to Mono development, and am wanting to work with Mono on my Windows XP system (eventually wanting to be able to work with Mono and Linux as well) and found out that SharpDevelop allows for compilation using Mono.  I installed the Mono 2.0 distro available now on their site, and the installed SharpDevelop 3.0.  I added the full path the bin directory containing the Mono executables to my Path environment variable and the started SharpDevelop.  I created a project and then went to that project's Project Options page and chose the Compiling tab.  I went down to the Target Framework pulldown and I don't see any Mono targets reported.  What am I doing wrong?  If I go to the Windows Command Prompt window and type the command mono from any directory I will get the help results which tells me my path variable does contain the correct path to the Mono install.  Any help would be highly appreciated.  I'm anxious to play with the SharpDevelop environment, which I can already see to be very nice.

    Thanks...

     

  • 11-09-2008 9:56 AM In reply to

    Re: Not finding Mono 1.1 or 2.0 as targets

    The Mono addin in SharpDevelop 3.0 is shipped as a code sample. You'll need to download SharpDevelop's source code and build the sample.

    There's information about using Mono with SharpDevelop 3.0 on the mono wiki

  • 11-09-2008 5:24 PM In reply to

    • bmahf
    • Not Ranked
    • Joined on 11-09-2008
    • Posts 3

    Re: Not finding Mono 1.1 or 2.0 as targets

     Thanks a lot.  I compiled the Mono Addin, restarted my SharpDevelop, and created a new application choosing the Mono "Gtk# Application" option.  That compiled and ran, and then I set the run up to use Mono.  All this according to the link you sent. 

     I just need a bit of clarification at this point.  When I go to the Properties page for the project, I still see that Target Framework under the Compiling tab doesn't show Mono as a target.  (A previous page I had seen said that I should see Mono as options here and choose it that way, so I'm wanting to understand this choice.)  The Target Framework option has 5 options, all of them version of the .NET Framework.  I am assuming that I could choose any one of these and it would change the version of the framework that Mono is using for the build, as long as I had that framework version installed.  Correct?

     Thanks again...

  • 11-09-2008 10:28 PM In reply to

    Re: Not finding Mono 1.1 or 2.0 as targets

    Unfortunately the project options won't work with the Mono addin. If you want to switch from Mono's .NET 2.0 to 1.1 you'll need to modify the .csproj file. Which compiler is used is determined by the <MonoTargetFrameworkVersion> element.

    For Mono's .NET 2.0:

    <MonoTargetFrameworkVersion >v2.0</MonoTargetFrameworkVersion>

    For .NET 1.1

    <MonoTargetFrameworkVersion >v1.1</MonoTargetFrameworkVersion>

    Ideally the Mono addin would add these options to the project options but at the moment the current settings are hard coded in SharpDevelop and I haven't gotten around to changing that.

  • 11-10-2008 1:24 PM In reply to

    • bmahf
    • Not Ranked
    • Joined on 11-09-2008
    • Posts 3

    Re: Not finding Mono 1.1 or 2.0 as targets

     Thanks.  At least I've been warned.  :)

     Looking forward to the version that supports Mono options, but this gets me going.

     Bruce

     

Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.