I need a way to cross compile a short piece of .NET C# code to a dll, which will then run a client's Windows environment.
Active1 year, 4 months ago
I run OS X 10.9.2 on an iMac.
Does anyone know what tools allow this?
I would rather not install Parallels and Windows if I can find a way to cross compile this without needing that heavy of an installation of Microsoft tools.
bmike
Extension for Visual Studio Code - C/C++ IntelliSense, debugging, and code browsing. Next is the Business version at $999 and that's the one I have. As well as Xamarin Studio on the Mac it integrates with Visual Studio so you can develop iOS/Android apps as if writing.NET C#. The clever trick is that it uses your Mac to build and debug the App using the iPhone/iPad simulator while you step through code in Visual Studio.
♦
168k4646 gold badges304304 silver badges662662 bronze badges
JagraJagra
Visual Studio For Mac Can I Program In C++ 사용법
45422 gold badges1212 silver badges2727 bronze badges
![]() 6 Answers
Check out the Mono Project. It may be what you are looking for.
MonoDevelop is a cross-platform IDE primarily designed for C# and other .NET languages. MonoDevelop enables developers to quickly write desktop and ASP.NET Web applications on Linux, Windows and Mac OSX. MonoDevelop makes it easy for developers to port .NET applications created with Visual Studio to Linux and Mac OSX maintaining a single code base for all platforms.
Ruskes
38.9k55 gold badges4646 silver badges122122 bronze badges
level42level42
If you have a Mac you can compile C# like this:
Compile:
mcs fileName.cs Run: mono fileName.exe
If you don't have Mono installed on your Mac, you can google it and install it and then you will be good to go. You don't need Windows to do this. Foundation to match for mac studio fix n3.
user3439894
31.8k77 gold badges4949 silver badges7070 bronze badges
danydany
You can install it with homebrew:
Then you can use it with:
DorianDorian
1,62311 gold badge99 silver badges1515 bronze badges
No personal experience with this IDE but this looks like it will work:http://monodevelop.com
atldeadheadatldeadhead
You may now want to look into the following
Xamarinhttps://www.xamarin.com/
Visual Studio for Machttps://www.visualstudio.com/vs/visual-studio-mac/
Alex HedleyAlex Hedley
Can I compile .NET C# code on my Mac?
You can compile C# code yes.
I would rather not install Parallels and Windows if I can find a way to cross compile this without needing that heavy of an installation of Microsoft tools.
Mono does not have 100% compatibility with the .NET implementation.
The Common Language Infrastructure (CLI) is a framework for executing managed code. The CLI consists of several parts including a Virtual Execution System (VES). .NET's VES is the Common language Runtime. Mono has it's own separate VES implementation.
In other words, at the very least do not expect to run code that has only been tested in a *nix/OSX environment to run without testing it on a windows environment.
P.Brian.MackeyP.Brian.Mackey
You must log in to answer this question.Not the answer you're looking for? Browse other questions tagged imacwindows .Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |