How to setup Visual Studio without pain

Visual Studio (VS) can be very hard to install. If you are lucky, one whole day may be enough to install VS. However, in some cases, some students spent weeks to install VS. In all cases, installing VS can be (very) painful.

Fortunately, Microsoft provides a virtual machine (VM) to help you quickly setup VS.

To run a VS virtual machine, your computer needs to have at least 8GB of RAMs. You also need 30GB of disk spaces.

Follow these steps to setup a VS virtual machine:

  1. Download and install Oracel VirtualBox. (If you have other VM softwares (VMware, Hyper-V, Parallels) installed on your computer, you can ignore this step.)

    1. Download Oracle VirtualBox from https://www.virtualbox.org/. just click on "Download VirtualBox" and select "Windows hosts".

    2. Install Oracle VirtualBox.
  2. Download the "Windows 10 development environment" VM.
    The VM is very big. Since our campus network charges you for the data you use, it is very expensive to download the VM. Thus, I will give you an IPv6 torrent to download the VM free of data. The VM is already unzipped, you can use it directly.
    You can also download the VM directly from https://developer.microsoft.com/en-us/windows/downloads/virtual-machines. Choose the "Windows 10 Enterprise" download, and select VIRTUALBOX in our case. Unzip the file you downloaded, you will get a .ova file.
  3. Import the VM:
    1. Open Oracle VirtualBox from your start menu.
    2. In "管理", choose "导入虚拟电脑".
    3. Choose the .ova file you get from step 2, click on "下一步".
    4. In "处理器", choose 2. In "内存", choose 4096 MB if your computer have 8GB of RAMs, or 8192 if your computer have 16GB of RAMS. In 虚拟硬盘, change the path of the vmdk file to a location where you have at least 30GB of disk spaces.
    5. Click on "导入", wait till it finishs.
  4. Install VirtualBox Guest Additions:
    1. Start the VM you just imported, wait till it boots to desktop.
    2. In "设备", choose "安装增强功能".
    3. Inside the VM, in This PC, you will find a CD drive named "CD Drive (D:) VirutalBox Guest Additions", open it, click on "VBoxWindowsAdditions.exe" to install the VirtualBoxGuest Additions.
    4. Inside the VM, reboot the VM.

After all these steps, you will have a VM wil VS preinstalled inside the VM. The VM will expire after a period of time. Usually Microsoft will release a new VM before the old VM expires.

You can enable clipboard sharing and file dragging between your computer and the VM. That means you can ctrl+c some test from your computer and ctrl+v into your VM. You can also drag files into your VM or drag file out of it. To enable clipboard sharing and file dragging:

  1. Open your VM, in "设备", choose "共享剪贴板", choose "双向".
  2. In "设备", choose "拖放", choose "双向".

You could also share folders between your computer and the VM. To enable file sharing:

  1. Open your VM, in "设备", choose "共享文件夹", choose "共享文件夹". Click on the add icon on the right side. Click on the down arrow on the right of the "共享文件夹路径" textbox, choose "其他" to select a folder to share.
  2. Check "固定分配", click on "OK", click on "OK".
  3. Make sure you VM is discoverable:
    1. Click on the network icon in your system tray, select Network (Connected).
    2. Click on the Network (Connect) icon listed under Ethernet.
    3. Make sure "Make this PC discoverable" is on.
  4. In This PC, on the left pane, choose Network. On the right pane, double click on VBOXSVR, you can see your shared folder.
时间: 2024-08-03 23:28:40

How to setup Visual Studio without pain的相关文章

Visual Studio Create Setup project to deploy web application in IIS

Introduction: In this article I will explain how to create setup file in visual studio 2008/2010 to deploy web application file directly in IIS or in client machine or how to place web application folder in c:\\inetpub\wwwroot folder by running setup

Visual Studio 2015 update 2 setup fails with "missing or damaged package kb3022398"

Question Hi, I wanted to install Visual Studio Professional 2015 Update 2 from my MSDN abo (web installer) and got the following error "A Setup package is either missing or damaged -> Please provide a Location to search for the package ...kb302239

Visual Studio Code Setup

Windows https://code.visualstudio.com/docs/setup/windows Additional Components and Tools https://code.visualstudio.com/docs/setup/additional-components VS Code is a small download by design and only includes the minimum number of components shared ac

Setup QT 5.5.1 + OpenCv 3.0 + Visual Studio 2013 on windows 10

1. Install Visual studio 2013 community version which is free to use for personal usage. 2. Setup the debugger follow the instruction in http://doc.qt.io/qtcreator/creator-debugger-engines.html. On windows can go to link https://msdn.microsoft.com/en

Visual Studio 2015 setup issue with Android SDK – hack it!

Visual Studio 2015 setup issue with Android SDK – hack it!

制作自己的Setup.exe-程序打包详解(基于Visual Studio 2015)

序言 第一次打包程序,新手,遂作笔记如下,以供自己忘记细节时翻看,也供同样新手或有需要者以为参考.不敢班门弄斧,大神若是误入还请莫要见笑. 以下所述基于Visual Studio 2015环境. 安装InstallShield 2015 Limited Edition 按照以下步骤安装InstallShield 2015 Limited Edition: 1.打开Visual Studio 2015>New Project...,一步步点击,直至看到如下内容: 点击上图中红圈部分,会自动打开浏览

Introducing Visual Studio’s Emulator for Android

原文地址 Microsoft released Visual Studio 2015 Preview this week and with it you now have options for Android development: C++, Cordova, and C# with Xamarin. When choosing one of those Android development options, Visual Studio will also install the bran

Introducing Visual Studio’s Emulator for Android

visual studio 2015支持Android开发了. Microsoft released Visual Studio 2015 Preview this week and with it you now have options for Android development. When choosing one of those Android development options, Visual Studio will also install the brand new Vi

如何创建 Visual Studio 2017 RC 离线安装包

友情提示 目前,Android SDK 不支持离线安装.所以在未联网的电脑上离线安装 VS2017RC 且选择了 Android SDK 则可能失败. 创建 Visual Studio 的离线安装计划 首先下载相应版本的可执行文件,例如:vs_community.exe.vs_enterprise.exe 或 vs_professional 在 cmd 中运行可执行文件并加入下列参数: a. --layout <path>,<path>参数用于指定下载文件的目标路径.不支持相对路径