How do I force a rebuild when the project configur

2019-01-12 09:36发布

问题:

This question already has an answer here:

  • Why doesn't F5 rebuild project before execution in Visual Studio? 3 answers

I have several project configurations and I switch between them constantly. However, every time I switch, I have to manually do a rebuild before running. How do I force it to rebuild automatically?

回答1:

From the Tools Menu

  • Select Options

  • Select Projects and Solutions

  • Select Build and Run

In the combo box below the text that says "On Run, when projects are out of date"

Make sure that you have selected "Always build"