SharpDevelop Community

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

Using Mono with SharpDevelop & WinForm

Last post 12-11-2008 2:02 PM by Miky13. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 12-10-2008 2:21 PM

    • Miky13
    • Not Ranked
    • Joined on 12-10-2008
    • Posts 4

    Using Mono with SharpDevelop & WinForm

    Hi,

    I'm working on SD about 6 month ago, it's a great IDE, I like it, congrats for providing us such a good thing :)

    Actualy I have some tools I wrote with SD for MS Windows and framework .Net 3.5... I used WinForm for developing my GUI. 

    I try to make it work with my xubuntu server, which have mono 2.01 paquage running on it. I want to work on my windows XP for coding, and get the sames projects to build to run it as well on MS .NET 3.5 or on Mono 2.0... I figured I could switch the framework target to mono 2.0 as I rode it here:

    http://community.sharpdevelop.net/blogs/mattward/archive/2005/10/12/SharpDevelopAndMono.aspx

    But I cant find this option, I only have the MS framework... Apparently this option was present into SD 2.X and it was removed from 3.0 (so sad, that was a great functionnality...). Btw I search for a while, and then found a tutorial which explain how to compile addon mono for a use with SD. I do this, then now I can make GTK project, but I still want to make it work with my winform projects, cause I know the winform component and I dont want to learn how to use GTK components or rewrite my applications... I rode that i must modify my .csproj file in order to make it run on linux mono .Net but I still want to compile for MS .Net platform, and the manipulation is still boring to do every time I release a new version...

    So finaly my question : Is there any means to switch the target framework with a gui, or a tool, or an addon, in order to build an executable that can be used on mono 2.0 on a linux machine...?

    Thanks by advance for help !

    Mike

     

    PS : Sorry for my bad english... If I'm not "understandable" tell me, I will try to use other words to explain what is my problem !

  • 12-10-2008 6:12 PM In reply to

    Re: Using Mono with SharpDevelop & WinForm

    The mono addIn was removed from the build process after 2.2 as it is not really maintained. However it still is in the source code download and you can build it four yourself to be able to compile for mono.

  • 12-10-2008 6:36 PM In reply to

    • Miky13
    • Not Ranked
    • Joined on 12-10-2008
    • Posts 4

    Re: Using Mono with SharpDevelop & WinForm

     Thanks for the answer

     I tried this : compile the mono addons sample, and now I can make mono project but I want to compile my winform projects and I dont find the switch to target the mono .net framework. In the project property window I cant choose it... I though the addon was only for using GTK GUI, Im wrong ? What I have miss ?

  • 12-10-2008 10:24 PM In reply to

    Re: Using Mono with SharpDevelop & WinForm

    The short answer is that the mono options are not supported in the project options with the sample addin with SharpDevelop 3. The longer answer and how to work around this problem can be found on this thread
  • 12-11-2008 9:58 AM In reply to

    • Miky13
    • Not Ranked
    • Joined on 12-10-2008
    • Posts 4

    Re: Using Mono with SharpDevelop & WinForm

     Thank you, I've already seen this post but I tought there was a kind of third party addon to fix that with a GUI or another mean...

    Anyway, now I think to another solution, which, I think, will be more "user-friendly" than edit with a notepad my project...I mean, do with SD what I was looking for here : Create a C# winform project which fopen() a selected .csproj and fwrite the "<MonoTargetFrameworkVersion >" I choose... I'll give a try to this, and report my success or failure in this thread. But I think it will be not difficult to do this !

    Thanx for your attention to my problem... And, again, I'm sorry for my bad english ^^

    A long life to SD !!! And a BIG UP to the community \o/

  • 12-11-2008 2:02 PM In reply to

    • Miky13
    • Not Ranked
    • Joined on 12-10-2008
    • Posts 4

    Re: Using Mono with SharpDevelop & WinForm

    I try to modify my csproj file and append the tag <MonoTargetFrameworkVersion> under the <TargetFrameworkVersion> line, then recompile... I try to execute the binary under WinXp with .Net 3.5 runtime and its ok, and, the most beautiful in this story, the same binary on XUbuntu 8.04 LTS works fine too !!!

    So no need to switch anything, just put the tag <MonoTargetFrameworkVersion> in the csproj file one time only, then it work both Win32 dotNet & Linux mono !

    So no need to have a tool or anything else :)

    I just have a problem with a mono issue on DataBinding that is not yet completly implemented, but anything is ok with SD!

     Thx again

     

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