最近用VS2008开发WindowsMobile程序,使用C#、.NETCompactFramework,发现项目生成速度比较慢。用VS2008打开项目后,开始一段时间生成速度还能忍受,时间一长,编译速度巨慢,最慢达到5分钟之久,实在无法忍受。
2
3
4
5决定找出VS2008生成时,做了什么花费时间的工作。从工具à选项进入“选项”对话框
6
7选择“MSBuild项目生成输出详细信息”为“诊断”这样编译时,会输出具体执行了那些任务,花费了多少时间。
8
9
10
11结果发现最花费时间的是
12
13PlatformVerificationTask
14
15
16
17http://blogs.msdn.com/vsdteam/archive/2006/09/15/756400.aspx有PlatformVerificationTask
18
19的具体描述
20
21
22
23参照上文的说明,修改文件
24
25C:/Windows/Microsoft.NET/Framework/v3.5/Microsoft.CompactFramework.Common.targets
26
27中
28
29<Target
30
31Name="PlatformVerificationTask"Condition="'$(SkipPlatformVerification)'=='true'">
32
33<PlatformVerificationTask
34
35PlatformFamilyName="$(PlatformFamilyName)"
36
37PlatformID="$(PlatformID)"
38
39SourceAssembly="@(IntermediateAssembly)"
40
41ReferencePath="@(ReferencePath)"
42
43TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
44
45PlatformVersion="$(TargetFrameworkVersion)"/>
46
47</Target>
48
49部分,红色文字为新增加的部分
50
51
52
53
54
55于是项目生成速度大幅提高。
56
57<noscript></noscript>
58
59
摘自:http://www.cnblogs.com/edusoft/archive/2009/06/27/1512324.html
相关推荐
如何搭建windows mobile应用开发的环境
Windows Mobile开发Windows Mobile开发Windows Mobile开发Windows Mobile开发
Windows Mobile开发实验,wince操作系统定制。
Windows Mobile 移动开发指南 项目实例 各个控件 学习
结合经验和实例软件来介绍Windows Mobile操作系统上的短信开发技术
有关windows mobile 实例开发的问题,希望对大家有所帮助
windows mobile驱动开发
Windows mobile应用开发流程
Windows_Mobile study.doc VS2008 +windows Mobile 系统搭建 从网上整理的资料汇总,可以参考一下
VS2008+WindowsMobile6开发环境配置[归纳].pdf
txt格式,列出基本上在Windows Mobile开发当中都会碰到的问题以及解决方法,是新手和老手都必须读一读的哦,指不定你今后就会碰上。
Windows CE 、Windows Mobile概念介绍,Windows Mobile开发工具简介,Windows Mobile开发环境搭建指南,智能手机Smartphone开发从零起步。
windows mobile开发常用工具介绍
Windows Mobile 6.1 开发指南,希望对大家有用!
pknife出品 有详尽的开发实例 不可多得
Windows Mobile应用程序开发介绍 .Windows Mobile平台 .Windows Mobile开发环境搭建 .Windows Mobile开发技术和资源 .Demo
VS2008+Windows_Mobile_6开发环境配置
介绍WindowsMobile应用程序开发的流程。
详细描述了windows mobile开发环境的搭配