LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Portability issues of .NET applications from Windows to Linux (https://www.linuxquestions.org/questions/linux-software-2/portability-issues-of-net-applications-from-windows-to-linux-608339/)

deepumnit 12-21-2007 07:33 AM

Portability issues of .NET applications from Windows to Linux
 
Hi everybody,

First of all, there was a similar thread on running .NET applications on Linux, but I did not find any interesting points or the solution to my problem. So, I hae started this thread.

My problem:

I had developed a .NET application on windows 2 years ago. The application is a "windows-forms" based application. I have installed mono Mono after reading the article. But, the application source code is not small and is not in a single file, as expected. Now, how do I run it on my Debian? I need help to do so. Please suggest me if you have any.

I tried to run it as given in the article. The output that I got is:

# ls
DATA MINING TOOL.exe DATA MINING TOOL.ilk DATA MINING TOOL.pdb
# mono DATA\ MINING\ TOOL.exe

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for <Module> ---> System.DllNotFoundException: msvcm80d.dll
at (wrapper managed-to-native) <Module>:<CrtImplementationDetails>.ThrowModuleLoadException (string,System.Exception)
at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x00000]
at <Module>..cctor () [0x00000] --- End of inner exception stack trace ---


Also, does mono provide a single compiler for C++, C# etc?

Regards,
Deepak B M

AdaHacker 12-22-2007 07:43 PM

Quote:

Originally Posted by deepumnit (Post 2998025)
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for <Module> ---> System.DllNotFoundException: msvcm80d.dll

Looks like your program is linking to the Microsoft C++ runtime. I don't think that's gonna work on Linux, for obvious reasons. You'll probably have to modify the program to remove that dependency.

As for compilers, Mono does not yet have a C++ compiler. Apparently there are some issues with trying to run managed C++ code built with the Microsoft compiler, but it can work in some cases.


All times are GMT -5. The time now is 10:00 PM.