2) Go to the line which reads:
Name="PlatformVerificationTask">
and change it to:
Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' == 'true'">
3) Add the SkipPlatformVerification environment variable to the system and set it to "true" (To re-enable Platform Verification set the environment variable to "false")
4) Restart Visual Studio for the changes to take effect (If building from the command line using MSBuild, add /p:SkipPlatformVerification=true to your command line to turn off the task. You can specify the variable in the project file also, so that this information is persisted across sessions).
解决办法:
1.VS平台上,选工具-选项-项目和解决方案-MS BUILD 项目生成输出详细信息中选择“诊断”,目的是在调试窗口中看出那个过程编译的时间最久。MOBILE平台一般问题都是出在PlatformVerificationTask上
2.进入.NET环境的安装位置:C:\WINDOWS\Microsoft.NET\Framework\v3.5 ,修改Microsoft.CompactFramework.Common.targets中关于PlatformVerificationTask的部分
3.参考上面的英文说明进行修改,
Name="PlatformVerificationTask">
修改成
Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' == 'true'">
4.重启VS2008,进行编译看速度是否正常,若不正常,上面的TRUE值再改为FALSE,再重新启动VS2008,问题一般可解决。