Resolve issue with VS F5 runtime prompt out of date

Source: Internet
Author: User

As we all know, vs starts debugging runtime, if the source file is detected newer than the markup at the time of generation, it will prompt out of the date


Common causes are changes to the code (incremental compilation can be resolved) or the relocation of the entire project location (recompile resolves)

A special case is that when testing the time-related features, the system time is changed to a comparison after the time and save the code, so that the source file timestamp comparison, there will be such a problem. At this time rebuild also can not solve the problem, need to find the source file of the timing is abnormal, and then change the time to normal (back to normal time to save), or you can consider removing the code to take a copy.


But recently changed computer, I found this problem, rebuild solution can not solve, and I recently did not make changes to the system time and so on.


So asked the next great Google Niang, found a solution.


Http://stackoverflow.com/questions/2762930/vs2010-always-thinks-project-is-out-of-date-but-nothing-has-changed


Translated into Chinese, that is


1. Close vs

2. Open the VS directory, such as D:\Program files (x86) \microsoft Visual Studio 11.0\common7\ide (right-click vs icon, familiar, open file location is)

3. Locate the Devenv.exe.config file, and add the following to the </configSections> line

    <system.diagnostics>        <switches>            <add name= "CPS" value= "Verbose"/>        </switches >    </system.diagnostics>

4. Come here http://technet.microsoft.com/en-us/sysinternals/bb896647 download DebugView, and open

5. Re-open vs, open the project, and press once F5

6. In the DebugView to find not the date, you will be sure to indicate which file is wrong, so that can be targeted to solve the problem.


After this step, this is because the project in the resource directory of a useless picture of the entity was deleted, but did not remove in the project caused. The problem was solved by removing it in the project altogether.


Resolve issue with VS F5 runtime prompt out of date

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.