none
VS2008 SP1: How to fix slow build time Windows Mobile 6.5? RRS feed

  • Question

  • I have copied pasted this code below to solution.csproj file and also made changes to Microsoft.CompactFramework.Common.targets. However, the build time is still slow, it takes around 10-20 minutes on average.

    <Target Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' != 'true'">  </target>

    Thanks in advance

    Sunday, June 24, 2012 10:08 AM

Answers

All replies

  • Hi Vict0r,

    Welcome here.

    Based on your description, I suggest you find out the tasks which occupied the long build time and also are not necessary for your project, and skip them.

    Do like this:

    1. Start your Visual Studio, go to tools->options->projects and solutions->build and run.
    2. Change the “MSBuild project build output verbosity” to “Diagnostic”, then debug again, you will get all your task build time.
    3. Then, find out what you do not need, and skip them.

    I hope my suggestions will help.

    Regards,

    Elegentin


    Elegentin Xie [MSFT]
    MSDN Community Support | Feedback to us

    Monday, June 25, 2012 8:32 AM
    Moderator
  • Hi Elegentin,

    Thanks for your reply! Below is the build summary: It seems that PVT is the problem here..

    The line I pasted into the csproj file and Microsoft.CompactFramework.Common.targets does not seem to work. I am wondering if it should be == 'true' ? <Target Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' != 'true'">  </target>

    Target Performance Summary:
            0 ms  GetTargetPath                              1 calls
            0 ms  ResolveVCProjectReferences                 1 calls
            0 ms  CreateSatelliteAssemblies                  1 calls
            0 ms  _CopyFilesMarkedCopyLocal                  1 calls
            0 ms  BeforeCompile                              1 calls
            0 ms  EntityDeploy                               1 calls
            0 ms  BeforeResGen                               1 calls
            0 ms  _CheckForCompileOutputs                    1 calls
            0 ms  _SetEmbeddedWin32ManifestProperties        1 calls
            0 ms  ComputeIntermediateSatelliteAssemblies     1 calls
            0 ms  AfterResolveReferences                     1 calls
            0 ms  Build                                      1 calls
            0 ms  _GenerateSatelliteAssemblyInputs           1 calls
            0 ms  AfterResGen                                1 calls
            0 ms  _CopySourceItemsToOutputDirectory          1 calls
            0 ms  _SplitProjectReferencesByFileExistence     1 calls
            0 ms  PrepareResources                           1 calls
            0 ms  CoreBuild                                  1 calls
            0 ms  _ComputeNonExistentFileProperty            1 calls
            0 ms  SetWin32ManifestProperties                 1 calls
            0 ms  Compile                                    1 calls
            0 ms  GetReferenceAssemblyPaths                  1 calls
            0 ms  AfterCompile                               1 calls
            0 ms  ResolveReferences                          1 calls
            0 ms  BuildOnlySettings                          1 calls
            0 ms  PrepareResourceNames                       1 calls
            0 ms  CreateCustomManifestResourceNames          1 calls
            0 ms  CompileRdlFiles                            1 calls
            0 ms  BeforeResolveReferences                    1 calls
            0 ms  PrepareRdlFiles                            1 calls
            0 ms  BuildAsmmeta                               1 calls
            0 ms  _CopyAppConfigFile                         1 calls
            0 ms  ResGen                                     1 calls
            0 ms  PrepareForRun                              1 calls
            0 ms  GetFrameworkPaths                          1 calls
            0 ms  BeforeBuild                                1 calls
            1 ms  GetCopyToOutputDirectoryItems              1 calls
            1 ms  PrepareForBuild                            1 calls
            1 ms  AssignTargetPaths                          1 calls
            1 ms  _CopyOutOfDateSourceItemsToOutputDirectory   1 calls
            1 ms  _GenerateCompileInputs                     1 calls
            1 ms  ResolveProjectReferences                   1 calls
            1 ms  _CopyOutOfDateSourceItemsToOutputDirectoryAlways   1 calls
            1 ms  AddHighDPIResource                         1 calls
            1 ms  _CheckForInvalidConfigurationAndPlatform   1 calls
            1 ms  AfterBuild                                 1 calls
            1 ms  CopyAsmmetaFilesToOutputDirectory          1 calls
            2 ms  SplitResourcesByCulture                    1 calls
            9 ms  CreateManifestResourceNames                1 calls
            9 ms  _CleanGetCurrentAndPriorFileWrites         1 calls
           10 ms  CopyFilesToOutputDirectory                 1 calls
           10 ms  IncrementalClean                           1 calls
           11 ms  CoreResGen                                 1 calls
           32 ms  ResolveAssemblyReferences                  1 calls
          624 ms  CoreCompile                                1 calls
        766163 ms  PlatformVerificationTask                   1 calls

    Task Performance Summary:
            0 ms  Message                                    3 calls
            0 ms  Delete                                     1 calls
            0 ms  GetDeviceFrameworkPath                     1 calls
            0 ms  CreateProperty                             1 calls
            0 ms  EntityDeploy                               1 calls
            0 ms  GetFrameworkPath                           1 calls
            0 ms  MakeDir                                    1 calls
            0 ms  AssignTargetPath                           5 calls
            0 ms  FindAppConfigFile                          1 calls
            1 ms  AssignCulture                              1 calls
            1 ms  ConvertToAbsolutePath                      1 calls
            1 ms  AddHighDPIResource                         1 calls
            2 ms  RemoveDuplicates                           2 calls
            3 ms  ReadLinesFromFile                          1 calls
            8 ms  FindUnderPath                              5 calls
            9 ms  CreateCSharpManifestResourceName           1 calls
           10 ms  GenerateResource                           1 calls
           11 ms  Copy                                       8 calls
           32 ms  ResolveAssemblyReference                   1 calls
          570 ms  Csc                                        1 calls
        765992 ms  PlatformVerificationTask                   1 calls

    Build succeeded.

    Time Elapsed 00:12:46.89

    Monday, June 25, 2012 10:21 AM
    • Marked as answer by Vict0r Tuesday, June 26, 2012 9:14 AM
    Monday, June 25, 2012 2:24 PM
  • The line I pasted into the csproj file and Microsoft.CompactFramework.Common.targets does not seem to work. I am wondering if it should be == 'true' ? <Target Name="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' != 'true'">  </target>

    Welcome back.

    Yes, you are right. You can also refer to Malleswar's suggestion, please change it and try again.

    Regards,

    Elegentin


    Elegentin Xie [MSFT]
    MSDN Community Support | Feedback to us



    Tuesday, June 26, 2012 1:38 AM
    Moderator