Visual Studio 2008 开发Win CE程序,生成解决方案很慢的问题。

在使用Visual Studio 2008 开发Win CE程序的时候,生成解决方案时,需要十几分钟乃至半个小时。

开发3分钟,编译半小时。真的让人崩溃啊!!!!!

为了解决这问题,找了很多方法。终于找到了一个可行的:

1、在我的电脑,找到以下这个文件:

C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.CompactFramework.Common.targets

2、编辑该文件

在这段代码修改:

 <Target
        Name="PlatformVerificationTask">
        <PlatformVerificationTask
            PlatformFamilyName="$(PlatformFamilyName)"
            PlatformID="$(PlatformID)"
            SourceAssembly="@(IntermediateAssembly)"
            ReferencePath="@(ReferencePath)"
            TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
            PlatformVersion="$(TargetFrameworkVersion)"/>
    </Target>

改为: (加上:Condition="'$(SkipPlatformVerification)' == 'true'" )

 <Target
        Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' == 'true'">
        <PlatformVerificationTask
            PlatformFamilyName="$(PlatformFamilyName)"
            PlatformID="$(PlatformID)"
            SourceAssembly="@(IntermediateAssembly)"
            ReferencePath="@(ReferencePath)"
            TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
            PlatformVersion="$(TargetFrameworkVersion)"/>
    </Target>

 

posted @ 2019-10-30 16:10  ShuChang  阅读(588)  评论(0编辑  收藏  举报