码迷,mamicode.com
首页 > 其他好文 > 详细

How to setup Visual Studio without pain

时间:2017-09-17 15:09:10      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:day   menu   hosts   case   env   sid   tor   nec   hyper-v   

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.
    技术分享

How to setup Visual Studio without pain

标签:day   menu   hosts   case   env   sid   tor   nec   hyper-v   

原文地址:http://www.cnblogs.com/zhangyin-neu/p/7535365.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!