Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

Is it possible to write a program with visual studio and run it in a different operating system like linux or mac or...? I need to know that if I do programming with visual studio, it means that I always generate applications for Microsoft windows or not?

Thanks
Posted

1 solution

Yes...but.

It's not that simple, because you need the whole framework below your application in order for it to work, and Microsoft only produce .NET itself for Windows.

For Linux, look at Mono
For Mac, look at Mono:OSX
For iPad and Android look at Xamarin

The first is free, I think the second is, and Xamarin is expensive!
 
Share this answer
 
Comments
Saman With You 1-Dec-13 5:33am    
So if I want to design an application, first I should look that what kind of operating systems it's supposed to use, then I choose my IDE or programming language. yes? For example if I want to use the application on Linux it's not appropriate to design the app with .Net
OriginalGriff 1-Dec-13 5:41am    
To an extent, yes. There is no point in designing an coding an application if it can't run on your target system - that would be like trying to play a CD in your iPod! :laugh:
You can use .NET for Linux - but you have to install Mono on the Linux box first before you can run it. It's a bit like the CD / iPod thing: you can do it, but you have to rip the CD to MP3 files first...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900