I am new at C# and mono. I just wrote a small GtkSharp program on my Ubuntu laptop and when I tried to run it on my girlfriend's windows 7 computer it just wouldn't start. So I thought it might be because she doesn't have Gtk installed. I found a site where I downloaded a Gtk installer and installed it, but the program still doesn't work.
What is the problem? I've seen the program work great on my Mac (which happens to have Mono installed) do I have to install mono on her computer?
You need the GtkSharp Runtime Redistributable to run your application on a Windows machine. GTK by itself does not provide GtkSharp or an appropriate CLR for your application. Try downloading from the Mono website.
Install mono and then try again.
Related
I have project build in wpf code 3.1.0 .net and it's run on my machine perfectly but when i wanna install in
windows 7 : it can't run and cant install .net automatically and when i install .net manually it shows
The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try to reinstall the program to correct this problem.
and that happed to in some version of window 10 but when i install .net manually they don't work (don't even show any message).
see this question for the "api-ms-win-crt-runtime-l1-1-0.dll" error
I have installed Xamarin and Mono on my Mac so that I can work with a C# project on the fly. I can run it on the Mac, however when i compile the project on my Mac and then run it on Windows (server 2003), I get an error message.
Why is this?
I was using Windows specific .dlls like Kernel32, etc. Removing these parts made it run on OS X and Linux.
I have developed an application on my Windows machine, using Xamarin Studio, targeting Mono / .Net 4.5 and using GTK. The app runs on my Windows machine since I have .Net installed, now I need to deploy to a Mac. The Mac has Mono Runtime already installed, but I have no idea what to send.
If there is anything I need to "pack" or "link" I need to do it on my Windows machine and only send one or more files to the Mac user, so they can run it. After hours of reading, I keep hearing about mkbundle and MonoMac, but it seems that you use them on a Mac or at least I have not found a clear guide on how to do this on my Windows computer.
Here is the question - I have only one .exe right now, how do I "convert" this to a Mac "executable?"
I want to run an application in client machine without installing it in the client machine. the application file should be in my usb pen drive and when I go to customer pen is plug in client machine and run the application. The system is developed by c#. Please send any ideas.
Build it in .Net framework 2. Then you can run it in almost all the windows machine except windows 8. .Net framework 2 is disabled by default in windows 8. You can enable it and run your app. Framework 2 will be available when installing windows and can run by double clicking the exe
If you are just interested in running the C# program, there are various online C# compiler available. For eg:
http://www.compileonline.com/compile_csharp_online.php
http://ideone.com/
If it is an application in .exe, you should be able to run it in windows without installing anything, as Windows already contains a version of .Net by default.
If you just have the dlls, scripts etc, you are in deep trouble.
It sounds as if you're after a linker/merger/virtualizer. I don't have any experience with these tools but they are cited quite often:
Xenocode
Thinstall
ILmerge
Salamander
SkaterPro
Spoon Studio
How c# written code is running on mac version of Mono. Can you please explain because as far as i know Mac doesn't support .exe files. Then when we build a c# application how it run on Mac.
It's a massive topic. But to address the .exe file point, you would launch mono with the .exe as the parameter of the mono process. It's not the native OS that is 'supporting' the .exe, it is mono itself.
This is really no different to any .net implementation, in that the 'executable' runs in a sandbox, not directly interfacing with the OS.