1、找到以下文件
C:WindowsMicrosoft.NETFrameworkv3.5Microsoft.CompactFramework.Common.targets
2、用记事本打开该文件,找到以下节点,按照加粗亮底的部分,修改后保存。
1 <Target Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' == 'true'" > 2 <PlatformVerificationTask 3 PlatformFamilyName="$(PlatformFamilyName)" 4 PlatformID="$(PlatformID)" 5 SourceAssembly="@(IntermediateAssembly)" 6 ReferencePath="@(ReferencePath)" 7 TreatWarningsAsErrors="$(TreatWarningsAsErrors)" 8 PlatformVersion="$(TargetFrameworkVersion)"/> 9 </Target>
3、重启VS,再次编译,速度是不是提高了很多呢?
来源于此大神的博客:http://blog.csdn.net/wl076/article/details/43303629