VS2010 过期问题的解决
元旦耍假回来发现VPC里面的VS2010用不了了,原来过期了:
google 了一下,原来vs2010 ctp版是hard-code到2009年元旦过期的,download了好几天,不能就这样放弃了吧?没办法,只有改系统时间了,不过改时间却不是那么简单,得遵循以下步骤:
1. 禁用虚拟机与主机的时间同步
如果安装了Virtual Machine Additions 插件,默认情况下,虚拟机的时间会自动跟主机的时间同步,所以即使我们在虚拟机里改了时间而且也禁用了与internet时间同步功能,虚拟机的时间隔几秒又会变回跟主机一样的时间。按以下步骤禁用虚拟机与主机时间同步的功能:
1.1 关闭VPC2007 (如果正在运行的话)
1.2 找到VS2010的.vmc镜像文件VisualStudio2010CTP.vmc
1.3 用记事本打开这个vmc文件
1.4 在该文件中找到如下节点:
<integration>
<microsoft>
<mouse>
<allow type="boolean">true</allow>
</mouse>
Bunch of other stuff that I am skipping over to save space...
</microsoft>
</integration>
1.5 将以上部分按如下修改:
<integration>
<microsoft>
<mouse>
<allow type="boolean">true</allow>
</mouse>
<components>
<host_time_sync>
<enabled type="boolean">false</enabled>
</host_time_sync>
</components>
Bunch of other stuff that I am skipping over to save space...
</microsoft>
</integration>
1.6 保存以后关闭该vmc文件
1.7 用VPC2007运行该文件
2. 禁止虚拟机的时间与internet同步
这个简单,uncheck “Synchronize with an Internet time server”前面那个复选框就ok了
3. 修改时间为2008年11月与2009年元旦之间的任意时间
注意一定要是这个时间段,否则还是运行不了VS2010
参考: