How do I stop VS saying External source and decompiling my code, when it has all the source files in the project?

Malcolm Crowe 20 Reputation points
2023-11-22T06:56:48.8633333+00:00

I have a project with about 95 source files arranged in folders. Suddenly VS has decided that it needs to decompile source and marks has external sources. This is incorrect: all the sources are in the project folders. Then it stops me placing breakpoints in my code preventing me from debugging

Developer technologies | Visual Studio | Debugging
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-11-23T03:19:38.2533333+00:00

    Hi @Malcolm Crowe

    Welcome to Microsoft Q&A! 

    Is your “Enable Just My Code” checked? (Tools > Options > Debugging > General)   

    Please go to Tools > Options > Debugging > General > disable “Automatically decompile to source when needed (Managed only)”.

    Then, close all running VS instances, delete the hidden .vs, bin and obj folders in the project folder and rebuild your project. 

    Sincerely,

    Anna


    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.

     

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.