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

Posted ycsc

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Visual Studio 2008 开发Win CE程序,生成解决方案很慢的问题。相关的知识,希望对你有一定的参考价值。

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

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

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

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

C:WindowsMicrosoft.NETFrameworkv3.5Microsoft.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>

 

以上是关于Visual Studio 2008 开发Win CE程序,生成解决方案很慢的问题。的主要内容,如果未能解决你的问题,请参考以下文章