Visual Studio: Build Step

I have a project that references an assembly in which I have code. I also have all the PDB files, etc. However, at some point, I pressed the wrong button in the dialog during debugging, and now I can no longer enter the assembly code. I know this description is a bit vague, but I find that the dialogue I accidentally clicked was the one that complains when your "source code is newer than the built-in version of the assembly, continue debugging"? but I can’t be sure. Anyway, I'm sure there is an easy way to bring Visual Studio back to a state where it starts to transition through my build code again. Any great ideas?

+7
source share
1 answer

In your child project, verify the following: -

  • “create clean” your child project. make sure that all dll and pdb files have been deleted from the bin \ debug folder in the child project.

  • create your child project by clicking the build or ctrl-shift-b command. Please do not hit F5, as for some reason it does not receive the latest version of dll and pdb.

  • make sure you don’t have a reference to the release build of the parent dll, sometimes it caused problems for me depending on the configuration of the release build for this project. This should be the Debug assembly configuration for the parent project, and you must add the link from the debug folder or use the "Reference Path" in visual studio.

Now you can start the project by pressing F5.

Hope this helps.

+4
source

All Articles