1、找到以下文件
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.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,再次编译,速度是不是提高了很多呢?
本文介绍了一种通过修改Visual Studio中特定文件设置来显著提升编译速度的方法。具体操作包括定位并编辑C:WindowsMicrosoft.NETFrameworkv3.5Microsoft.CompactFramework.Common.targets文件中的PlatformVerificationTask节点,调整SkipPlatformVerification参数,从而实现编译效率的显著提升。

356

被折叠的 条评论
为什么被折叠?



