none
F5 compiles from (backed up?) files different from displayed ones

    Question

  • This happened suddenly by an unknown cause. I make a change in a displayed file and press F5 but the program I see executed is an older version. I even started a brand-new program and added files from my present one, but when I ran VS on the new program the files that it showed were previous ones. What is this? And how do I solve it?

    gabriel weinreich

    Saturday, October 29, 2016 4:49 PM

Answers

  • Thank you for your help. I was able to repair the situation by unloading and then reloading the project. This apparently reconnected the correct source files. Incidentally, I then found out that the project had been tied to the wrong source files for some time before I realized it, but now everything is working fine.

    gabriel weinreich

    • Marked as answer by prog.gabi Friday, November 04, 2016 12:50 AM
    Friday, November 04, 2016 12:49 AM

All replies

  • Hi gabriel weinreich,

    >>This happened suddenly by an unknown cause.

    Because this issue was happened recently, I suggest you could use reset and safe mode function to troubleshoot this issue. Please refer to the following steps:

    Click Start->Developer Command Prompt for VS-> type “devenv.exe /ResetSettings”

    To restore Visual Studio to default settings.

    If above method could not work for you, we could start VS in safe mode (type devenv /SafeMode in Developer Command Prompt), which could prevent all third-party VSPackages from loading when Visual Studio starts, thus ensuring stable execution.

    Sincerely,

    Oscar


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 01, 2016 2:09 AM
    Moderator
  • Hi gabriel weinreich,

    Please feel free to let me know your latest results, and you could update your VS to the latest version (VS2015 version 14.0.25431.01 Update3). Please refer to the following steps to update the VS:

    Tools->Extensions and Updates->Updates->update option beginning with “KB” letters.

    Sincerely,

    Oscar


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, November 02, 2016 7:20 AM
    Moderator
  • Thank you for your help. I was able to repair the situation by unloading and then reloading the project. This apparently reconnected the correct source files. Incidentally, I then found out that the project had been tied to the wrong source files for some time before I realized it, but now everything is working fine.

    gabriel weinreich

    • Marked as answer by prog.gabi Friday, November 04, 2016 12:50 AM
    Friday, November 04, 2016 12:49 AM
  • Hi friend,

    Glad to know that you have resolved this issue, and thanks for sharing your solution here.

    Have a nice day :)

    Sincerely,

    Oscar



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, November 04, 2016 1:23 AM
    Moderator