The recent development of Windows Mobile programs with VS2008, using the C #,. NET Compact Framework, found that project generation was slow. After opening the project with VS2008, start a period of time to build speed can endure, a long time, the compilation speed is very slow, the slowest up to 5 minutes long, it is unbearable.
Decide what time-consuming work is done to find out what VS2008 generates. From the tools à option into the Options dialog box
When you compile with "MSBuild Project build output Details" for "diagnostics", you will output how much time has elapsed to perform those tasks specifically.
It turns out that the most time-consuming
Platform Verification Task
Http://blogs.msdn.com/vsdteam/archive/2006/09/15/756400.aspx has platform verification Task
The specific description
Refer to the instructions above to modify the file
C:/windows/microsoft.net/framework/v3.5/microsoft.compactframework.common.targets
In
<target
Name= "Platformverificationtask" condition= "' $ (skipplatformverification) ' = = ' true '" >
<platformverificationtask
Platformfamilyname= "$ (platformfamilyname)"
Platformid= "$ (platformid)"
Sourceassembly= "@ (intermediateassembly)"
Referencepath= "@ (ReferencePath)"
Treatwarningsaserrors= "$ (treatwarningsaserrors)"
Platformversion= "$ (targetframeworkversion)"/>
</Target>
section, the red text is the newly added part. At the same time adding "skipplatformverification" to the system environment variable, after assigning its value to true, after reopening the VS2008 and the project, the debugging speed becomes significantly faster and the problem is resolved.
Solve the problem of slow generation of Windows Mobile projects VS2008 Development (RPM)