打开\cocos2d-2.1rc0-x-2.1.3\template\msvc\InstallWizardForVS2010.js,搜索“10.0”,替换成“8.0”;
打开\cocos2d-2.1rc0-x-2.1.3\template\msvc\CCAppWiz.win32\Templates\1033\proj.win32\main.h,删掉第11行“#include "CCStdC.h"”;
打开\cocos2d-2.1rc0-x-2.1.3\template\msvc\CCAppWiz.win32\Scripts\1033\default.js,找到第73行:
// Create vcproj.user file
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strUserTarget = "";
if(WizardVersion >= 10.0)
strUserTarget = strProjectName + ".win32.vcxproj.user";
else
strUserTarget = strProjectName + ".win32.vcproj.user";
改成:
// Create vcproj.user file
var objNetWork = new ActiveXObject("WScript.Network");
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strUserTarget = "";
if(WizardVersion >= 10.0)
strUserTarget = strProjectName + ".win32.vcxproj.user";
else
strUserTarget = strProjectName + ".win32.vcproj." + objNetWork.ComputerName + "." + objNetWork.UserName + ".user";
第123行:
+ " Version=\"9.00\"\r\n"
改成:
+ " Version=\"8.00\"\r\n"