How To Run Visual Studio For Windows With Wine On Mac

Posted on  by 

Active7 years ago

I'm trying to use Windows Visual C++ Express Edition 2008 in OSX with Wine, but X11 tells me that it was unable to find a volume for extraction and to verify my permissions, which are read and write. Terminal gives back

I am trying to run this code on PAGE 7. Of this document, and successfully ran it on Microsoft Visual Studio 2010 for Windows. The problem is that I need to get this code working on linux. The problem is that I need to get this code working on linux. Neither Visual Studio or the.NET framework will run on Mac OSX (although the latter is changing). However, if you want to write an application in a similar framework, you could use Mono and MonoDevelop.

What can I do about this? Is there a way to make that compiler run in OSX? Sadly, I absolutely must use that one; it's for a class. I was going to get a Windows 7 RC and just dual-boot, but I believe that as of yesterday they are no longer available. Is there anyway I can use this program without having to purchase Windows?

Joey
34.1k11 gold badges92 silver badges119 bronze badges
Zach

5 Answers

If you are interested in a little bit of self-exploration, consult with your teacher about using XCode or gcc tools.

With a few exceptions and side-cases, C++ is C++ whether on windows, mac, unix, linux, etc. Visual Studio is one environment to code in, but far from the only one.

The source code you create should be fully compatible with Visual Studio.

Note: This doesn't necessarily apply if you are doing GUI development or Graphics programming. Both of those require access to OS system libraries. In any of these cases, a wine-type virtualization won't work either, you'll need an actual Windows install.

KeckKeck
1,8981 gold badge12 silver badges16 bronze badges

Check to see if your school is on the MSDN Academic Alliance, you may be able to get a free copy of Windows.

Keck

How To Run Visual Studio For Windows With Wine On Mac

Keck
1,8981 gold badge12 silver badges16 bronze badges

According to the Wine Application Database Visual Studio Express 2008 doesn't work (rating of 'Garbage'), however Visual Studio Express 2005 has a rating of 'Bronze'. You could try and find a copy of 2005 and give that a try.

As another alternative, you don't necessarily need the IDE to compile code. You could very easily write valid C++ code in the editor of your choice and then use the command line compiler (cl.exe) and linker (link.exe) included with VC++ Express to compile and link the executable. Your more likely to have success running just the compiler and linker on Wine than the entire IDE.

Try these links out:

Community
heavydheavyd
52.6k13 gold badges126 silver badges158 bronze badges

As an answer above noted, you will need a copy of Windows. If you have MSDNAA through your academic institution, you can get XP, Vista, or 7 free of charge.

You can install Windows on your Mac two different ways: a native install or through virtualization. A native install means installing BootCamp, repartitioning your drive, and doing other nasty things, while a virtual install requires a host application. For your purposes the free version of VirtualBox should do just fine.

Before you start this, you need to take into account the model of your Mac. Check 'About this Mac' from the Apple menu and make sure that its an Intel Mac - PowerPC Macs can't run Windows at all.

For VirtualBox, installation is simple. Download, mount, and run the VirtualBox installer. Download the Windows version you want from MSDNAA - XP will likely work best in virtualization. Create a new Virtual Machine, and set VirtualBox to load the Windows disk image as its CDROM drive. Boot the VM, and install Windows as you normally would. There's a more in-depth guide here on Sun's website.

Free Download Visual Studio For Windows 8

You say the course requries Visual Studio -- talk to your professor about using XCode (OS X's native development environment) or using GCC (the Gnu Compiler Collection) from the commandline. If your professor knows their stuff, they should be able to tell you at least about GCC. With the correct libraries, you should be able to develop and compile GUI Windows prorams with GCC, but you'll still need a native installation of Windows to make sure they perform as expected.

jokerdino
2,2801 gold badge19 silver badges32 bronze badges
Andrew ScagnelliAndrew Scagnelli

While the Windows 7 RC installation disc is no longer available for download, you can still request a product key until October 21st, 2009. So, if you can find another source for the Windows 7 RC installation disc ISO image (e.g. from a friend who has a copy), then you can still request a product key to allow you to legally install and activate the RC. See Windows 7 Release Candidate (RC) Download Is No Longer Available:

Sorry, the Windows 7 RC is no longer available for download. If you’ve got the download and need a product key, they’ll be available until October 21, 2009.

To look up your product key or get a new one, just go through the steps like you're starting a download. Go to the bottom of this page, pick your version and language, and click go. From there, sign in with your Windows Live ID, and your product key will appear on the next page.
[...]

Finally, remember the expiration:

How To Run Visual Studio For Windows With Wine On Mac

Remember expiration dates: Please plan ahead for when the RC expires. You'll get two weeks' notice, and then beginning on March 1, 2010, your PC will start shutting down every two hours. The RC will expire on June 1, 2010. To avoid interruption, you'll need to rebuild your test PC to replace the OS with a valid version of Windows, and reinstall all your programs and data before the software expires.

Chris W. ReaChris W. Rea
7,76714 gold badges70 silver badges94 bronze badges

Develop apps and games for iOS, Android,
and web using .NET

Code in C#, F#, Razor, HTML5, CSS, JavaScript, TypeScript, XAML, and XML

With the power of Roslyn, Visual Studio for Mac brings IntelliSense to your fingertips. IntelliSense describes APIs as you type and uses auto-completion to increase the speed and accuracy of how you write code.

Quick Info tool tips let you inspect API definitions, squiggly lines in the editor highlight issues, in real time as you type.

Use the Visual Studio debugger to quickly find and fix bugs across languages.

The Visual Studio for Mac debugger lets you step inside your code by setting Breakpoints, Step Over statements, Step Into and Out of functions, and inspect the current state of the code stack through powerful visualizations.

As your project grows, chances are, you’ll find yourself restructuring and refactoring code that you or someone else wrote earlier. That’s a whole lot easier when Visual Studio for Mac takes care of the heavy lifting for you.

The Visual Studio for Mac editor supports powerful built-in refactoring options such as Extract Method and Rename, accessible via the Quick Actions menu.

Manage your code in Git or SVN repos hosted by any provider, including GitHub and Azure DevOps. Review diffs, stage files, and make commits from inside Visual Studio for Mac.

Enhance your code quality and create a solid code base with comprehensive testing tools. The integrated test runner supports major testing frameworks such as xUnit, NUnit, and MSTest, allowing you to efficiently run and debug unit tests and automated UI tests.

Choose the development environment that is right for you. With Visual Studio on both macOS and Windows, you can share your C# and F# projects seamlessly with your team using either OS.

Compare Visual Studio for Mac and PC
FEATURESVisual Studio 2019 for MacVisual Studio 2019
Web and cloud development using C#
ASP.NET Core and .NET Core
Publish to Azure
Azure Functions
Azure Connected Services
Docker container tools
Desktop development
WPF and Windows Forms
UWP
Mac Apps using Xamarin and C#
Console apps with C#
Desktop apps using C++
Mobile and gaming
Mobile development with .NET using Xamarin and C#
Game development using Unity and C#
Mobile and game development using C++
Other workloads and tools
Java
Python
SQL Server data tools
Node.js
Unit testing
Version control with Git

Create cross-platform apps targeting Android and iOS using Xamarin

Build, manage, and deploy cloud apps that scale to Azure

Create and debug cross platform games and 3D real time applications with Unity

Customers using Xamarin with Visual Studio for Mac

Launch a professional environment tailored to the Mac, free for most non-enterprise users

Coments are closed