Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio displayed lots of errors, but there is only one actual error

I have a custom control library in my solution, where my main WPF project references it. If there is an error in the custom control library, then the error list goes mental and displayed hundreds of errors. Here is an example of one such incident.

Error List

Now this is just an error that I forced in order to demonstrate the problem.

In this case, the problem isn't so severe, as there are only 21 errors. However, there have been occasions where I have had to filter though hundreds of errors to find the actual error that's causing everything else to fail.

I believe I understand what the problem actually is. I think the problem is due to the custom control library not being built, therefore my main project can't find the dll for it, and therefore the custom controls cannot be found, which causes the errors.

Now, in truth, the error list isn't lying, I mean, these are real errors. However, that being said, is there a way to prevent this from occurring?

like image 706
Mike Eason Avatar asked Dec 06 '25 05:12

Mike Eason


1 Answers

If I understand what you are asking, I think that this extension will help you as it stops the build as soon as an error occurs.

StopOnFirstBuildError

like image 109
David Pilkington Avatar answered Dec 07 '25 20:12

David Pilkington



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!