How can I install Visual Studio?

51

Solution 1

You can try Wine, but per the Wine application database, Visual Studio generally works poorly under Wine:

From this Wine site page:

What works
nothing, install fails

What does not
n/a

What was not tested
n/a

http://appdb.winehq.org/objectManager.php?sClass=application&iId=892

Solution 2

You'll need to run a virtual machine. Wine won't be able to handle it. Look into install VirtualBox (not necessarily the best but easier). You'll need to create a windows VM and then once you have windows installed install Visual Studio.

If you're looking at equivalent IDEs. Qt Creator, Eclipse, KDevelop, Anjuta, Intellij can all act as possible alternatives depending on the language you wish you develop in.

Possibly useful link on how install windows on VirtualBox: http://www.wikihow.com/Install-Windows-XP-on-Ubuntu-with-VirtualBox

Solution 3

You can use the Mono Development IDE to write .NET code in Ubuntu, rather than trying to use a Microsoft product in a non-Microsoft OS (which others have rightly pointed out is never going to be supported, easy, or in MS' best interests).

It has most of the features of Visual Studio, and will run faster and be more stable.

To install monodevelop, use this command in a terminal:

sudo apt-get install monodevelop

Monodevelop Home page: http://monodevelop.com/

Solution 4

Sorry to give you the wrong answer, but I really doubt this will ever be truly supported.

Some people might actually get it working someday, but Microsoft will most certainly never support this officially; or even make things easy for the community, for that matter. From what I know, running the MS Office suite itself is horribly painful, it becomes more difficult with each new version.

Don't take it personally. Business is business. And their share on development is not on supporting the opensource community. For all they care, they strive on making their tools less and less compatible overtime.

If you really need this inside Linux, the best choice would be to have Windows in a Virtual Machine.

Solution 5

Visual Studio is tightly integrated with Windows and Developing a .NET application using any language (C# or VB) takes more than just having Wine, and since Wine is not capable enough to provide complete development runtime as .NET in Linux.

If you want to develop software specifically in C#, on Linux, you can use MonoDevelop

Since, you're asking for Visual Studio 2010 (.NET 4.0), with MonoDevelop, you'll not be able to develop an app that particularly uses .NET 4, as of now MonoDevelop is in version 3.0.2 (somewhat equivalent to .NET 3.0).

You can still use Windows virtually within Ubuntu, using VirtualBox. And then install Visual Studio there, but still a serious app development is not recommended to be done in Virtualized environment.

Share:
51
Ajey
Author by

Ajey

Updated on September 18, 2022

Comments

  • Ajey
    Ajey over 1 year

    So I have a product model that looks like

    belongs_to :seller
    has_many :coupons
    

    And coupon model that looks like

    belongs_to :seller
    belongs_to :product
    

    And in my Products controller I use

    @seller = current_user
    @coupon = @seller.coupons.create(params[:coupon])
    

    to create the coupons for the seller

    While the coupon is being created, I need to associate it with the product too, i.e When a new coupon is created it should be saved for the seller AS WELL AS for the product.

  • Eliah Kagan
    Eliah Kagan almost 12 years
    @Kush (who edited this post, adding the relevant section): Can you provide some kind of explanation, or citation(s), to support the idea that virtualized environments are poorly suited for serious software development? I've developed software in virtual environments without problems, and in my personal experience, the more sophisticated and serious a programmer is, they more likely (than me) they are to do some or all of their serious app development in such an environment.
  • Marceau
    Marceau almost 12 years
    @EliahKagan: The only reason why using Virtualized environment should be avoided while developing, is the performance we get while development, no matter how better configuration we have, Virtual Machines simply can't compete the performance of having Physical installation. Also, if VM is unavoidable, the host machine must be capable enough to take the load of development tools being used.
  • Eliah Kagan
    Eliah Kagan almost 12 years
    @Kush Good answer, thanks! (Of course, if someone is choosing between running VS2010 on a virtual machine hosted in Ubuntu, or on an old physical machine with poor specs pulled out of the closet for this purpose, the VM might perform better.)
  • trampster
    trampster over 11 years
    I use monodevelop everyday, it works well for me.
  • ImaginaryRobots
    ImaginaryRobots over 11 years
    "buggy and lack of features" is exactly what you would get from trying to run Visual Studio in Ubuntu - you will have to either make a compromise somewhere or stick with MS Windows as your OS.
  • BlitZz
    BlitZz over 11 years
    Sorry, none that I know about other than Wine :(
  • Erwin Mayer
    Erwin Mayer over 11 years
    MonoDevelop is still unable to open Visual Studio 2012 solution and project files :(.
  • Jet
    Jet almost 10 years
    As I understand this is the best option to run without headaches. Especially in case of Visual Studio which (unlike games) doesn't need a lot of performance.
  • Christian Stewart
    Christian Stewart almost 9 years
    Joke's on you! They've released Visual Studio Code and are moving towards Linux support (yes I know you wrote this in 2012)
  • ave
    ave about 8 years
    Vs code is an editor, not an IDE.
  • Dasun
    Dasun about 8 years
    agreed! but worth to mention :)
  • ave
    ave about 8 years
    Yeah, since I installed Linux as dual boot, %90 time of my time on pc is on linux, and VS Code is really helping me, as monodevelop's color scheme is white.
  • Hi-Angel
    Hi-Angel over 6 years
    @ErwinMayer WorksForMe. On my ex-job I been involved in C# development, and my host OS was GNU/Linux distro. Sharing projects between Visual Studio in a VM and Monodevelop worked just fine. However it should be noted that due to lack of vim-style extension in monodevelop in was completely unusable. I have used it only for compilation and tiny edits.
  • Hi-Angel
    Hi-Angel over 6 years
    @ImaginaryRobots monodevelop partially a Microsoft product either. It's developed by Xamarin, and Xamarin is owned by Microsoft.
  • Hi-Angel
    Hi-Angel over 6 years
    ⁻¹. @Kushal shame on you, it's your ⁻¹ by the way. You should've left a separate answer instead of hijacking an existing one. First, wine is capable enough to provide .NET in GNU/Linux. The secret in simply installing Windows version of Mono. You being asked about it for every new wineprefix btw. Second: on my ex-job I've been using GNU/Linux host and Windows guest for "serious C# development" just fine. More over, not long before I quit, for political reasons I had to swap host and guest, and I dare you, building on all cores in Windows host makes it unusable as opposed to Ubuntu host.
  • Marceau
    Marceau over 6 years
    @Hi-Angel Care to read question, answer and comment dates here? .NET Core is open source and has been ported to Linux since then, and this answer is no longer 100% correct, so burst your "anger" somewhere else. Peace out.
  • Hi-Angel
    Hi-Angel over 6 years
    @Kushal .net core is irrelevant to Mono (well, except that there's an ongoing effort on porting the code from there).
  • jrh
    jrh over 4 years
    @AbhinavGauniyal I agree with you that VS code is weaker than Visual Studio but Code doesn't seem to be based on Atom, "Although it uses the Electron framework, the software does not use Atom and instead employs the same editor component (codenamed "Monaco") used in Azure DevOps (formerly called Visual Studio Online and Visual Studio Team Services)".wikipedia
  • Abhinav Gauniyal
    Abhinav Gauniyal over 4 years
    When I wrote that comment it was speculated that its based on Atom editor, ofc now we know its not ;)