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的更多相关文章

  1. Visual Studio 2008 – ASP.NET “System.Runtime.InteropServices.COMException”

    The Issue When openning an existing ASP.NET project for the first time in Visual Studio 2008 it retu ...

  2. .Net Core 常用开发工具(IDE和运行时、Visual Studio插件、Visual Studio Code插件)

    IDE和运行时 组件名 描述 可选版本 推荐版本 Visual Studio Community 社区免费版 For Visual Studio 2017 For Visual Studio 2019 ...

  3. 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 th ...

  4. VS2017、VS2019没有Setup安装项目(Visual Studio Installer)_解决方案

    前言: VS2010中有一个自带的安装部署项目,叫:Visual Studio Installer ,我们通常称为:setup项目,是一个用于自定义安装部署的项目方案.但是在VS2017,VS2019 ...

  5. 让InstallShield 2015 Limited Edition for Visual Studio 2015生成的setup.exe双击时以管理员权限运行

    转载:http://blog.csdn.net/zztoll/article/details/52096700 如题,如何让InstallShield 2015 Limited Edition for ...

  6. 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 ...

  7. python setup.py install 报错:error: [WinError 3] 系统找不到指定的路径。: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib

    Outline 在通过 setup.py 安装python模块时,遇到了以下报错: # 执行 python setup.py install # 报错: error: [WinError 3] 系统找 ...

  8. 修改visual studio setup 安装顺序(解决新版安装包无法自动移除老版本程序的问题)

    背景 visual studio setup 支持自动删除之前版本的安装,需要设置RemovePreviousVersions = true, DetectNewerInstalledVersion ...

  9. Visual Studio Code Setup

    Windows https://code.visualstudio.com/docs/setup/windows Additional Components and Tools https://cod ...

随机推荐

  1. xml嵌套防止解析

    举个例子 <?xml version="1.0" encoding="UTF-8"?><Messages><Message typ ...

  2. 19-03【golang】strings包

    golang的strings包提供了字符串操作的一系列函数.下面做个简单介绍 函数 用法 备注 Compare(a,b sring) 比较两个字符串   Contains(s, substr stri ...

  3. vue中html页面写入$t(‘’)怎么显示

    1.在 main.js 中引入 vue-i18n (前提是要先引入 vue) 1 2 import VueI18n from'vue-i18n' Vue.use(VueI18n) 2.准备本地的翻译信 ...

  4. 如何让 curl 命令通过代理访问

    如何让 curl 命令通过代理访问 Linux.中国 - 开源中文社区 2018-01-18 8909 阅读 技术 我的系统管理员给我提供了如下代理信息: IP: 202.54.1.1 Port: 3 ...

  5. linux升级openssh到7.9

    客户linux主机ssh存在高危漏洞,需要进行升级修复. linux联网后,直接命令行: [root@gw ~]# yum update openssl -y 此命令只是小版本的升级,比如将opens ...

  6. js实现一个简单的登录页面

    <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8" ...

  7. 一年web网站测试总结

    1. 页面链接检查 每一个链接是否都有对应的页面,并且页面之间切换正确.可以使用一些工具,如LinkBotPro.File-AIDCS.HTML Link Validater.Xenu等工具.Link ...

  8. gperftools对程序进行分析

    gperftools是google出品的一个性能分析工具,相关介绍可见:https://github.com/gperftools/gperftools/wikigperftools性能分析通过抽样方 ...

  9. OO第一单元单元总结

    总述 三周的时间一晃而过,也到了和表达式说再见的时候了.想起来,现在已经能够优雅地在互测“攻击”别人,然后笑对被别人“攻击”,就觉得OO这三周还是很有意义,也多多少少改变了我.周六已经快习惯早上背着包 ...

  10. 非root用户安装cuda和cudnn

    1.根据自己的系统在官网下载cuda (选择runfile(local)) https://developer.nvidia.com/cuda-downloads 2.进入下载目录,并执行 sh cu ...