Re: [Mono-winforms-list] how to release a .net winform application by monodevelop?
if you want to run it on mac do the following [On windows] -create a new file BuildMac.bat in the same directory of your exe file -inside the file type this: PATH=C:\Program Files (x86)\Mono-2.10.4\bin;%PATH% macpack -n:YOURAPPNAME -a:YOURAPPEXEFILE -o:. -m:winforms -replace YOURAPPNAME with the name for your application you want to see on mac. example Painter -replace YOURAPPEXEFILE with the name of your exe file. example Painter.exe then save the file and double click it.. this will create something called MacPackage which is a folder structure contains your exe and script that modifies some settings for your app to work on mac. I assumed you're using winforms since you're new to mono, but if you're using Gtk# then -replace winforms with cocoa now, you just copy the newly created mac package and run it on mac after you install mono framework, that's all. Note: winforms is very bad on mac, use Gtk# instead.beleive me you'll do so after you've pulled all your hair off. -- View this message in context: http://mono.1490590.n4.nabble.com/how-to-release-a-net-winform-application-by-monodevelop-tp3729175p3734058.html Sent from the Mono - WinForms mailing list archive at Nabble.com. ___ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list
[Mono-aspnet-list] calling Response.Write() from a nested type
hello every one,, I’m trying to call Response.Write() from a method defined in a class called application defined in another page called application.aspx : i have a main index page that references another page using : /%@ Reference Page=libs/application.aspx%/ the application.aspx has a class called application the application class has a method called /public void draw_page_head()/ however when i try to call draw_page_head from the index page : /application.draw_page_head();/ i get a compiler error Compiler Error Message: CS0038: Cannot access a nonstatic member of outer type `System.Web.UI.Page' via nested type `ASP.asp_mostafa_software_libs_application_aspx.application' Source Error: Line 6: public void draw_page_head() Line 7: { /Line 8:Response.Write(/ Line 9: html + Line 10: headtitle + title + /title/head + i really want to be able to use Response.Write() or any thing equal to echo() in php from my class application -- View this message in context: http://mono.1490590.n4.nabble.com/calling-Response-Write-from-a-nested-type-tp3733477p3733477.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
Re: [Mono-aspnet-list] calling Response.Write() from a nested type
Sure you want to do this? Are you thinking to use user controls? The same page call Renders the users controls and you do not need to call response.write for any nested type... I think you are wrong! 2011/8/10 mostafaxx mostafa_alshr...@yahoo.com hello every one,, I’m trying to call Response.Write() from a method defined in a class called application defined in another page called application.aspx : i have a main index page that references another page using : /%@ Reference Page=libs/application.aspx%/ the application.aspx has a class called application the application class has a method called /public void draw_page_head()/ however when i try to call draw_page_head from the index page : /application.draw_page_head();/ i get a compiler error Compiler Error Message: CS0038: Cannot access a nonstatic member of outer type `System.Web.UI.Page' via nested type `ASP.asp_mostafa_software_libs_application_aspx.application' Source Error: Line 6: public void draw_page_head() Line 7: { /Line 8:Response.Write(/ Line 9: html + Line 10: headtitle + title + /title/head + i really want to be able to use Response.Write() or any thing equal to echo() in php from my class application -- View this message in context: http://mono.1490590.n4.nabble.com/calling-Response-Write-from-a-nested-type-tp3733477p3733477.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list ___ Mono-aspnet-list mailing list Mono-aspnet-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
[Mono-dev] Warnings version conflict mono 2.10 xbuild
Hi all, I'm developing on windows in Visual Studio 2010. However, we made a build server(linux) that builds under mono (version 2.10 with xbuild). When I build on in VS, I don't receive any warnings. However, when building on linux i have 72 warnings of which the most of them are reference conflicts like: /opt/mono-2.10/lib/mono/4.0/Microsoft.Common.targets: warning : Found a conflict between : 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference. I'm building in .Net 4.0 and, as you can see, this is not an error but a warning, so building the project succeeds but with a huge ammount of warnings. Is there a chance this might be solvable such that these warnings don't show up cause I do prefer no warnings at all. Thanks in advance Bob -- View this message in context: http://mono.1490590.n4.nabble.com/Warnings-version-conflict-mono-2-10-xbuild-tp3733031p3733031.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Warnings version conflict mono 2.10 xbuild
It happened to me when I had references to libraries compiled against 3.5 (which in turn referenced System etc.) in an assembly compiled against 4.0 (which referenced System too). In my case I could just recompile those libraries to 4.0. Hi all, I'm developing on windows in Visual Studio 2010. However, we made a build server(linux) that builds under mono (version 2.10 with xbuild). When I build on in VS, I don't receive any warnings. However, when building on linux i have 72 warnings of which the most of them are reference conflicts like: /opt/mono-2.10/lib/mono/4.0/Microsoft.Common.targets: warning : Found a conflict between : 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference. I'm building in .Net 4.0 and, as you can see, this is not an error but a warning, so building the project succeeds but with a huge ammount of warnings. Is there a chance this might be solvable such that these warnings don't show up cause I do prefer no warnings at all. -- Konrad ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Need PutVar method on Mono.CSharp.Evaluator
Hi, I am new to Mono, but becoming a big fan quickly (more detail below regarding what I am doing with it). To get right to the point, however, I would appreciate advice on how to *programmatically* set the value of a variable that can be seen inside the Evaluator, e.g., var temp = Evaluator.Evaluate(...); Evaluator.PutVar(x, temp); // so such method exists! Evaluator.Run(... x ...); I would like the value of x in the third line above to be the object that was returned from the call to Evaluate in the first line. Now, obviously, if the value of temp is a number or a string, I can just concatenate it into the string argument to Run, e.g., ...+temp+ But that doesn't work if temp is some other data structure. It is tantalizing that Evaluator has a GetVars() method (even though it returns a string)---so it is indeed keeping track of the defined variables! Btw, I wouldn't mind if I needed to initialize x with a var statement at the start. So I guess, for the long term, I am asking for a new PutVar method; I am also hoping for some kind of workaround in the short term, so I can finish my project (see below). Is there some way to directly access the global Mono environment (from C#) to simply set a variable? Thanks in advance, -Chuck P.S. My larger project is converting an AI system for controlling NPC's, written in Java, for use in Unity3d. I have used ikvmc (see ikvm.net) successfully to do the Java translation, but there is a remaining problem with changing the embedded scripting language to C# (to easily access Unity3d game state---like the REPL at https://github.com/MrJoy/UnityREPL), which leads this email. -- Dr. Charles Rich, Professor of Computer Science Interactive Media and Game Development Worcester Polytechnic Institute, Fuller Laboratories B25b 100 Institute Road, Worcester, MA 01609-2280 Email: r...@wpi.edu Phone: 508-831-5945 Fax: 508-831-5776 Home: http://www.cs.wpi.edu/~rich ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-list] Monitor: Pluse() and Wait() - alternative ?
Hi Jonathan, see here: http://msdn.microsoft.com/en-us/library/de0542zz%28v=VS.100%29.aspx (note that Portable Class Library supports Enter()) and here: http://msdn.microsoft.com/en-us/library/system.threading.monitor.pulse%28v=VS.100%29.aspx (not supported in PCL) Yes, it's kinda odd - and PCL does remind me of J2ME :) -Matthias On Tue, Aug 9, 2011 at 11:53 PM, Jonathan Pryor jonpr...@vt.edu wrote: On Aug 9, 2011, at 9:34 AM, mwessendorf wrote: However I need to ensure this runs on the PCL (Portable Class Library) and therefore the above implementation does not work, since Pluse() / Wait() aren't supported in PCL Where can I find a listing of the types and members in the PCL? I find it rather odd that Monitor.Pulse() isn't in there, given that it's in Silverlight 3, 4, WP7, Xbox 360, and every version of .NET ever released [0, 1]. - Jon [0] http://msdn.microsoft.com/en-us/library/system.threading.monitor(VS.95).aspx [1] http://msdn.microsoft.com/en-us/library/system.threading.monitor.pulse.aspx -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Monitor: Pluse() and Wait() - alternative ?
On 09.08.2011 23:53, Jonathan Pryor wrote: On Aug 9, 2011, at 9:34 AM, mwessendorf wrote: However I need to ensure this runs on the PCL (Portable Class Library) and therefore the above implementation does not work, since Pluse() / Wait() aren't supported in PCL Where can I find a listing of the types and members in the PCL? I find it rather odd that Monitor.Pulse() isn't in there, given that it's in Silverlight 3, 4, WP7, Xbox 360, and every version of .NET ever released [0, 1]. Monitor.Pulse[All]() is not available in the Xbox/XNA profile. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Can't run my EXE in Windows
I already sent this in an email reply to Ian, but didn't see it show up in the list. Sorry if you get it twice! Also - the build process says it is building a target for .NET 3.5. I see that the development machine has .NET 4.0 but the target doesn't.I'm going to try installing .NET 4.0 on the target machine and see what happens. Hello Ian, At first I tried just copying likely looking DLLs into the executable directory. When that didn't work, I ran the gtk-sharp installer. No luck! Thanks for your help! JimE. -- View this message in context: http://mono.1490590.n4.nabble.com/Can-t-run-my-EXE-in-Windows-tp3722153p3733217.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Can't run my EXE in Windows
Hi Jim, If you're targeting .NET 3.5 then installing .NET 4.0 wouldn't help because they use different CLRs. Is .NET 3.5 installed on the target machine? Is it possible that you require .NET3.5 sp1? John I already sent this in an email reply to Ian, but didn't see it show up in the list. Sorry if you get it twice! Also - the build process says it is building a target for .NET 3.5. I see that the development machine has .NET 4.0 but the target doesn't. I'm going to try installing .NET 4.0 on the target machine and see what happens. Hello Ian, At first I tried just copying likely looking DLLs into the executable directory. When that didn't work, I ran the gtk-sharp installer. No luck! Thanks for your help! JimE. -- View this message in context: http://mono.1490590.n4.nabble.com/Can-t-run-my-EXE-in-Windows-tp3722153p3733217.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] MonoDevelop / Android
I recently got an Android tablet, and was thinking, since it can take a hardware keyboard, that the one thing I would really want on it, is MonoDevelop. I was wondering, with the tools to compile Mono applications on Android, is MonoDevelop available for Android, or are there plans to make it available? Thanks, -Jim Stapleton ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Can't run my EXE in Windows
Hello Again, I'm targeting 3.5 and both the development and target machines have 3.5 sp1 on them. I tried uninstalling 3.5 sp1 on the target machine, then installing 3.5 - still no luck. I thought that I might target an earlier .NET version, but I get errors when I try to build the solution. I think I'll try installing 4.0 on the target machine and change the build set up to compile for 4.0. Does anybody have other suggestions? Thanks! JimE. -- View this message in context: http://mono.1490590.n4.nabble.com/Can-t-run-my-EXE-in-Windows-tp3722153p3734650.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Can't run my EXE in Windows
Nope, that didn't do it either. When I tried to run it without 4.0 installed, it clearly told me that I needed to install .NET 4.0. After I installed .NET 4.0, I got the same error. Just to be sure, I uninstalled Gtk# for .NET 2.12.10 and re-installed; same error. Wait a minute - if the GTK# is for .NET 2.12.10, does that mean that I my compilation should be targeting .NET 2.12.10? Thanks! JimE. -- View this message in context: http://mono.1490590.n4.nabble.com/Can-t-run-my-EXE-in-Windows-tp3722153p3734699.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list