In debug mode, if there is an error in our application when we press F5 to start debugging, a dialog appears with the warning: "Your program has an error. Do you want to run your last modified program?" or something like this.
I want to enable or disable this dialog.
How can I do this?
Select the rules you want to suppress, and then right-click and select Suppress > In Source. If you suppress In Source, the Preview Changes dialog opens and shows a preview of the C# #pragma warning or Visual Basic #Disable warning directive that is added to the source code.
Suppress specific warnings for Visual C# or F# Or, select the project node and press Alt+Enter. Choose Build, and go to the Errors and warnings subsection. In the Suppress warnings or Suppress specific warnings box, specify the error codes of the warnings that you want to suppress, separated by semicolons.
To display the Error List, choose View > Error List, or press Ctrl+\+E.
You can turn that prompt on/off in your Visual Studio settings:
On the right side, you'll see a combo box labeled "On Run, when build or deployment errors occur".
Of course, as people have suggested in the comments, this means that your code has errors in it somewhere that are preventing it from compiling. You need to use the "Error List" to figure out what those errors are, and then fix them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With