.NET Compile on Mac run on Windows - c#

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.

Related

native DLL working fine in windows XP and trowing System.DllNotFoundException in windows 7 or later

I have a windows XP dev environment for C# application project combination with native DLL. Now I am trying to migrate to Windows7 using last visual studio 2015.
My problem is native DLL is trowing System.DllNotFoundException in windows7 dev environment, so it means I cannot create setup file with enhancements and new features.
Note: I got old windows xp setup file that will install in windows 7. same native DLL work perfectly fine, if that old setup file is installed.
I have no clue how setup file was created but it was created with wise installation studio
The same native DLL files working after old application install and native DLL are not working in dev environment and giving System.DllNotFoundException.
I tried with elevated permissions but no luck.
I am thinking of possible solutions one DLL registration I have no idea how to do that.
Any suggestion is well come
Thanks

C# mono GTK how to pack for Mac OS X

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?"

C# Mono IDE architecture in mac

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.

Is it possible to create a Windows 7 phone app in Ubuntu?

I'm able to run c# programs in Ubuntu using the mono project.
But I'd like to know whether it's it possible to create a Windows 7 phone app in Ubuntu.
If so, what packages do I need to install?
At the moment, no.
I tried to run Visual Studio 2010 Express for Windows Phone ( http://www.microsoft.com/visualstudio/en-us/products/2010-editions/windows-phone-developer-tools ) via Wine before but it failed to work properly without giving me problems. On top of that, you will still need Zune to allow deployment of app.

How do I make a GtkSharp app work on Windows

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.

Categories

Resources