折弯机——程序部署、调试时间长的解决办法
2015-05-20 13:19
225 查看
VS2008环境下采用C#、.NET Compact Framework开发WinCE、Windows Mobile程序时,编译项目非常慢,看着进度条慢慢刷,有时候需要几分钟。效率太低了,折磨了我几周的时间,忍无可忍,终于在网上找到解决方案。(这里得到一个启发:不管什么时候,遇到不爽不懂的,第一时间找解决方案,互联网是最近的资源)
通过修改VS的配置文件,以屏蔽掉编译中不需要的任务,这个修改让编译速度大大提高。
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>
在 PlatformVerificationTask后面添加
Condition="'$(SkipPlatformVerification)' == 'true'"
最终节点如下
<Target
Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' == 'true'" >
<PlatformVerificationTask
PlatformFamilyName="$(PlatformFamilyName)"
PlatformID="$(PlatformID)"
SourceAssembly="@(IntermediateAssembly)"
ReferencePath="@(ReferencePath)"
TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
PlatformVersion="$(TargetFrameworkVersion)"/>
</Target>
也可以将这段设置直接复制,替换。
3、重启VS,再次编译,编译部署的速度会大大提高。
msdn资料:http://blogs.msdn.com/b/vsdteam/archive/2006/09/15/756400.aspx
通过修改VS的配置文件,以屏蔽掉编译中不需要的任务,这个修改让编译速度大大提高。
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>
在 PlatformVerificationTask后面添加
Condition="'$(SkipPlatformVerification)' == 'true'"
最终节点如下
<Target
Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' == 'true'" >
<PlatformVerificationTask
PlatformFamilyName="$(PlatformFamilyName)"
PlatformID="$(PlatformID)"
SourceAssembly="@(IntermediateAssembly)"
ReferencePath="@(ReferencePath)"
TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
PlatformVersion="$(TargetFrameworkVersion)"/>
</Target>
也可以将这段设置直接复制,替换。
3、重启VS,再次编译,编译部署的速度会大大提高。
msdn资料:http://blogs.msdn.com/b/vsdteam/archive/2006/09/15/756400.aspx
相关文章推荐
- JLINK和ADS1.2配合调试下载程序,及JTAG不能识别CPU核解决办法
- Sharepoint 2010 使用asp.net web应用程序,调试sharepoint程序终极解决办法
- Sharepoint 2010 使用asp.net web应用程序,调试sharepoint程序终极解决办法
- Flex Builder调试Android程序,连接不上设备的解决办法
- 调试开发环境下的其他程序及PIL module datastore warning 的解决办法
- Eclipse里不能调试J2ME程序的解决办法: Attempting to resume current thread
- 部署PDA程序的时候存储不足的解决办法
- 【Rails】Rails程序部署到heroku上无CSS效果的解决办法
- 调试程序时找不到DLL的解决办法
- WebSphere(WAS)部署struts2程序Action找不到的解决办法
- Eclipse里不能调试J2ME程序的解决办法
- 调试asp.net程序遇见的三个常见问题及其解决办法
- Windows server 2008 IIS 调试ASP 错误号:3706 提示 “未找到提供程序 该程序可能未正确安装”解决办法 .
- myeclipse部署程序时无法出现路径的解决办法
- 控制台程序调试时一闪而过解决办法
- VS2008调试程序时出现“由于应用程序的配置不正确,应用程序未能启动,重新安装应用程序可能会纠正这个问题”的解决办法
- 解决websphere服务器部署程序提示应用已近存在错误的解决办法
- VS2005调试MFC程序时出现Runtime error的解决办法
- windows7下调试ASP+ACCESS错误“未找到提供程序 该程序可能未正确安装”解决办法
- 再vs2012下VTK程序不能调试解决办法