[Mono-list] Seeking advice on using monodevelop to learn CSharp
Stephen Liu
satimis at yahoo.com
Mon Apr 12 07:32:57 EDT 2010
Hi Stifu,
You are correct, "mono --version" showing 1.9.1
$ mono Desktop/.exe
actually is "mono /path/to/.exe file"
$ apt-cache policy mono-devel
mono-devel:
Installed: (none)
Candidate: 2.4.2.3+dfsg-2~bpo50+1
Version table:
2.4.2.3+dfsg-2~bpo50+1 0
1 http://www.backports.org lenny-backports/main Packages
mono-devel not installed yet.
$ sudo aptitude -t lenny-backports install mono-devel
mono version now upgraded
$ mono --version
Mono JIT compiler version 2.4.2.3 (Debian 2.4.2.3+dfsg-2~bpo50+1)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
$ mono /path/to/.exe --debug
Still the same warning popup
B.R.
SL
----- Original Message ----
From: Stifu <stifu at free.fr>
To: mono-list at lists.ximian.com
Sent: Mon, April 12, 2010 3:49:37 AM
Subject: Re: [Mono-list] Seeking advice on using monodevelop to learn CSharp
Let's be clear: your app is either a GTK# or a WinForms app, not both.
Since you made it on Windows with Visual Studio, I assume it is a WinForms
app. Therefore, it doesn't require GTK# (or MonoDevelop) to run on Linux.
Note that when running the application through command line, you can add
"--debug" at the end to have more information.
About this: "mono Desktop/.exe"
What is this slash doing there? Is it a typo?
By the way, from what you posted, I'm afraid you might be using Mono 1.9.1
rather than 2.4.2.3, I don't know for sure though. Type "mono --version" to
find out which version you're on. Mono 1.9.1 is "only" 2 years old, but
loads of improvements have been made since then.
If you want, I could also try to run your application if you send it to me.
satimis wrote:
>
> Hi Stifu,
>
>> This might be your problem. Look for
>> "libmono-winforms2.0-cil" in your distribution software repository (if
>> that
>> fails, look for any name that contains "winforms", in case it's called
>> differently in your distro).
>
>
> libmon-winform2.0-cil has been installed here;
>
> $ apt-cache policy libmono-winforms2.0-cil
> libmono-winforms2.0-cil:
> Installed: 1.9.1+dfsg-6
> Candidate: 1.9.1+dfsg-6
> Version table:
> 2.4.2.3+dfsg-2~bpo50+1 0
> 1 http://www.backports.org lenny-backports/main Packages
> *** 1.9.1+dfsg-6 0
> 500 http://ftp.hk.debian.org lenny/main Packages
> 100 /var/lib/dpkg/status
>
>
> satimis
>
>
>
>
>
> ----- Original Message ----
> From: Stifu <stifu at free.fr>
> To: mono-list at lists.ximian.com
> Sent: Mon, April 12, 2010 3:06:49 AM
> Subject: Re: [Mono-list] Seeking advice on using monodevelop to learn
> CSharp
>
>
> What is the exact error?
> It's possible you don't have everything installed (this depends on your
> Linux distribution, and I don't think you've stated which one you're on).
> If
> I remember correctly, Ubuntu doesn't include WinForms by default, and
> requires you to install it separately. This might be your problem. Look
> for
> "libmono-winforms2.0-cil" in your distribution software repository (if
> that
> fails, look for any name that contains "winforms", in case it's called
> differently in your distro).
>
>
> sai ram wrote:
>>
>> Hi,
>>
>> I tried as u said...
>>
>> 1. When i run Console Application it works perfectly... (VS2008 is not
>> designed only for console applications rite...)
>>
>> 2. When i try to run Win Form Application (C#) Using Mono application in
>> Linux , It shows an Assembly - GAC error
>>
>> -- Even i tried installing dll files into GAC Cache
>>
>> -- STill the same error persists........
>>
>> --Dono how to proceed further.. Kindly help me out..
>>
>> eagerly waiting for ur reply....
>>
>>
>>
>>
>> Sairam L
>> sairam at sofist.com
>> Phone: 91-44-28155334, 28155336, 42129885
>> Fax: 91-44-42123885fd
>> [URL= http://www.sofist.com][IMG]
>> http://www.sofist.com/images/logo.jpg[/IMG][/URL]
>> 70, Thyagaraya Rd.
>> T. Nagar
>> Chennai 600017
>> Tamil Nadu, India
>> www.sofist.com
>> ------------------------------------------------------------------
>> StatMax - Your one-stop Statistical solutions
>>
>>
>>
>> On Mon, Apr 12, 2010 at 12:32 PM, Stifu <stifu at free.fr> wrote:
>>
>>>
>>> Solutions (sln), projects (csproj) and last but not least: C# code; it's
>>> all
>>> exactly the same regardless of the IDE. There is nothing to recode,
>>> whether
>>> you started with Visual Studio or MonoDevelop. You can open a Visual
>>> Studio
>>> project in MonoDevelop, and vice versa.
>>>
>>> You don't even need to recompile your code with MonoDevelop for it to
>>> work
>>> on Linux. You can just use the exe directly. This means you can just
>>> stick
>>> to a single IDE.
>>>
>>> To run the exe, the most basic way to do it is through command line:
>>> "mono
>>> myapp.exe"
>>> Personally, I like to right click the exe and to select to run it with
>>> Mono
>>> (an option that may not be there by default, but which will stick after
>>> you've used it once, by selecting mono among the installed
>>> applications).
>>>
>>> Look around the net for more information.
>>>
>>>
>>> sai ram wrote:
>>> >
>>> > My Doubt is :
>>> >
>>> > 1. Assume, I created one Big App (1000 lines of code) in VS2008 Win
>>> Form
>>> > Application on Windows. I installed MONO for VS2008 and executed
>>> > successfully.
>>> > 2. Now i want to run that files in SUSE Linux.
>>> >
>>> > For the 2nd Option, What I have to do in this foll options .... ?
>>> >
>>> > a. Install MonoDevelop (on windows), Study Mono Develop coding's &
>>> syntax,
>>> > Using the new language, code the program (1000 lines of code) &
>>> Execute
>>> on
>>> > windows. After execute deploy it in linux ?
>>> >
>>> > [OR]
>>> >
>>> > b. Or Just copy the VS2008 Codes and run in SUSE Linux Using Mono.
>>> >
>>> > Which option i have to do now......?
>>> >
>>> >
>>> >
>>> >
>>> > Sairam L
>>> > sairam at sofist.com
>>> > Phone: 91-44-28155334, 28155336, 42129885
>>> > Fax: 91-44-42123885fd
>>> > [URL= http://www.sofist.com][IMG]
>>> > http://www.sofist.com/images/logo.jpg[/IMG][/URL]
>>> > 70, Thyagaraya Rd.
>>> > T. Nagar
>>> > Chennai 600017
>>> > Tamil Nadu, India
>>> > www.sofist.com
>>> > ------------------------------------------------------------------
>>> > StatMax - Your one-stop Statistical solutions
>>> >
>>> >
>>> >
>>> > On Sun, Apr 11, 2010 at 9:37 PM, Stifu <stifu at free.fr> wrote:
>>> >
>>> >>
>>> >>
>>> >> satimis wrote:
>>> >> >
>>> >> >> Why would you need to create 2 programs, and where does the .dat
>>> file
>>> >> >> come into the equation? It'd still be one single program, whether
>>> >> there
>>> >> >> is a .dat file or not.
>>> >> >
>>> >> > Because some users are running Windows and others Linux. Therefore
>>> I
>>> >> need
>>> >> > 2 programs serving them for the time being.
>>> >> >
>>> >>
>>> >> Mono is cross platform. The same exe will work on Windows and Linux.
>>> >> That's
>>> >> one of the main characteristics of Mono, and I thought that was the
>>> >> reason
>>> >> you chose to check it out.
>>> >>
>>> >>
>>> >> satimis wrote:
>>> >> >
>>> >> > Regarding Java if an program needs JRE (Java Runtime Environment)
>>> and
>>> >> it
>>> >> > can't find it on Windows during execution, it'll ask permission to
>>> >> > download it on Internet and install it on Windows as well. Only
>>> ONCE.
>>> >> > Should my recollection is correct. I don't run Windows often only
>>> for
>>> >> > testing. If I'm wrong please correct me. Thanks.
>>> >> >
>>> >> > Will GTK# be the same?
>>> >> >
>>> >>
>>> >> Whether it is Java, .NET or GTK#, it only needs to be installed once
>>> >> (unless
>>> >> you need a more recent version than the one installed).
>>> >>
>>> >> I guess you should just try this all out, and it'll clear things up
>>> for
>>> >> you.
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://n4.nabble.com/Seeking-advice-on-using-monodevelop-to-learn-CSharp-tp1820057p1836178.html
>>> >> Sent from the Mono - General mailing list archive at Nabble.com.
>>> >> _______________________________________________
>>> >> Mono-list maillist - Mono-list at lists.ximian.com
>>> >> http://lists.ximian.com/mailman/listinfo/mono-list
>>> >>
>>> >
>>> > _______________________________________________
>>> > Mono-list maillist - Mono-list at lists.ximian.com
>>> > http://lists.ximian.com/mailman/listinfo/mono-list
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/Seeking-advice-on-using-monodevelop-to-learn-CSharp-tp1820057p1836735.html
>>> Sent from the Mono - General mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Mono-list maillist - Mono-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>
>>
>> _______________________________________________
>> Mono-list maillist - Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>
>
> --
> View this message in context:
> http://n4.nabble.com/Seeking-advice-on-using-monodevelop-to-learn-CSharp-tp1820057p1836896.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
--
View this message in context: http://n4.nabble.com/Seeking-advice-on-using-monodevelop-to-learn-CSharp-tp1820057p1836933.html
Sent from the Mono - General mailing list archive at Nabble.com.
_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
Send instant messages to your online friends http://uk.messenger.yahoo.com
More information about the Mono-list
mailing list