vs2013 - projects marked out of date caused by other projects touching .lastbuildstate file

Morgan, Scot 0 Reputation points
2023-04-04T01:07:33.6933333+00:00

VS2013: How do I keep a project from touching another's project lastbuildstate? I have 10 projects that have their lastbuildstate being touched by another project. I believe because the timestamps on the the .lastbuildstate don't match other other files in the tlog folder is causing the debugger to claim projects are out of date when starting the debugger:outofdate

25>------ Build started: Project: pmu_client, Configuration: Debug Win32 ------ 25>Done building target "AfterBuild" in project "pmu_client.vcxproj". 25>Target "FinalizeBuildStatus" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets" from project "C:\BM-workspace\product\cas\components\pmu_client\build\vs2013\pmu_client.vcxproj" (target "Build" depends on it): 25>Task "Delete" 25> Deleting file "Debug\pmu_client.tlog\unsuccessfulbuild". 25>Done executing task "Delete". 25>Task "Touch" 25> Touching "Debug\pmu_client.tlog\pmu_client.lastbuildstate". ... Then later on project timer_service touches this file again: 9>------ Build started: Project: timer_service, Configuration: Debug Win32 ------ 9>Done building target "BuildLink" in project "pmu_client.vcxproj". 9>Target "CreateTfsBuildInfoResource" skipped, due to false condition; ( $(AddBuildInfoToAssembly)==true ) was evaluated as ( false==true ). 9>Target "AfterBuild" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.BuildSteps.Targets" from project "C:\BM-workspace\product\cas\components\pmu_client\build\vs2013\pmu_client.vcxproj" (target "Build" depends on it): 9>Done building target "AfterBuild" in project "pmu_client.vcxproj". 9>Target "FinalizeBuildStatus" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets" from project "C:\BM-workspace\product\cas\components\pmu_client\build\vs2013\pmu_client.vcxproj" (target "Build" depends on it): 9>Using "Delete" task from assembly "Microsoft.Build.Tasks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 9>Task "Delete" 9> Deleting file "Debug\pmu_client.tlog\unsuccessfulbuild". 9>Done executing task "Delete". 9>Task "Touch" 9> Touching "Debug\pmu_client.tlog\pmu_client.lastbuildstate". 9>Done executing task "Touch". 9>Done building target "FinalizeBuildStatus" in project "pmu_client.vcxproj". 9>Target "Build" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.BuildSteps.Targets" from project "C:\BM-workspace\product\cas\components\pmu_client\build\vs2013\pmu_client.vcxproj" (entry point): 9>Done building target "Build" in project "pmu_client.vcxproj". 9> 9>Build succeeded.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,176 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,002 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,086 Reputation points Microsoft Vendor
    2023-04-04T09:09:25.8866667+00:00

    Hello @Morgan, Scot,

    Welcome to Microsoft Q&A forum.

    As far as I know, no options can be set for keeping a project from touching another’s project .lastbuildstate file in VS 2013.

    The .lastbuildstate file is generated automatically by VS and set by default. Not only the .lastbuildstate files, but also the .tlog files are used to help detect if the files/projects are "out of date".

    Typically, if the related projects/files are not used or prepared to be used then the .lastbuildstate file should not be touched by another project, except this is a potential issue(as some features have been improved in higher versions of VS, it is recommended to use a higher version of VS, if it is possible). If the error message mentions that some files/projects are out of date and are needed to rebuild, then you may check if the files/projects are indeed used and out of date and keep them up-to-date.

    BTW, Incremental Build helps to improve the build process. Adding <TrackFileAccess>false</TrackFileAccess> property in .xxproj file may make VS stop tracking files but this property disables the support for Incremental Build and will cause VS build all the projects.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Reza Shobeiri 0 Reputation points
    2024-02-15T05:16:31.5366667+00:00

    hi, Problem : When you run/debug the project/solution don't run and message : " Visual Studio DLL is out of range ... " . Before uninstall VS fully test the below command . Uninstall the Visual studio updates , such as VS2013.3 , VS2013.5 , VSK**** . and restart it. normally it will be ok. you could find update . windows-> control Panle -> program and feature -> update -> select VS2013 update -> uninstall it. Regards,

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.