473,473 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Stop on first error

Is there a way to get VS to stop building my solution on the first error it
encounters?

--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com

Oct 3 '08 #1
6 1255
On Oct 3, 1:31 pm, "Peter Morris" <mrpmorri...@SPAMgmail.comwrote:
Is there a way to get VS to stop building my solution on the first error it
encounters?

--
Pete
====http://mrpmorris.blogspot.comhttp://www.capableobjects.com
Hi,

I'm not sure, but IMHO it's better not to, you may get the explanation
of the error in subsequent errors. IIRC when you call a method with
incorrect parameters you get two errors, the first saying than an
overload was not found and the second error says which parameter could
not be converted.
Oct 3 '08 #2
Say I have a solution with 10 projects in. Why would I want the subsequent
9 to fail building when the first one fails? I don't want to see 100
errors, I want to fix the first one. Fixing the first often fixes the
subsequent 99 anyway so I don't feel I am benefiting from the other errors.
Pete

Oct 3 '08 #3
Pete,

Have you tried using PreBuild-Post Build events ? I haven;t tried yet.

Try using/customising those events.

Thanks
Jibesh


"Peter Morris" <mr*********@SPAMgmail.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Say I have a solution with 10 projects in. Why would I want the
subsequent 9 to fail building when the first one fails? I don't want to
see 100 errors, I want to fix the first one. Fixing the first often fixes
the subsequent 99 anyway so I don't feel I am benefiting from the other
errors.
Pete

Oct 3 '08 #4
On Oct 3, 3:28 pm, "Peter Morris" <mrpmorri...@SPAMgmail.comwrote:
Say I have a solution with 10 projects in. Why would I want the subsequent
9 to fail building when the first one fails? I don't want to see 100
errors, I want to fix the first one. Fixing the first often fixes the
subsequent 99 anyway so I don't feel I am benefiting from the other errors.

Pete
Hi,

We have a solution with 56 projects :)
must of the time when the error is in one of the lower layer projects
you get all the errors in that project and in the other projects you
get at the most that the required dll was not found.
IMHO it's better to just see all the errors, you might have more than
one issue that you can fix at the same time.
Oct 3 '08 #5
On Fri, 3 Oct 2008 18:31:21 +0100, "Peter Morris"
<mr*********@SPAMgmail.comwrote:
>Is there a way to get VS to stop building my solution on the first error it
encounters?
Having used such a compiler in the past, I found it very irritating.
Having run a compile I could only edit one single error per editing
session, then I would have to compile all over again. With a longer
list of errors I could fix many errors in one editing session before
recomlpiling.

Having said that, may be a parameter that can be set in the IDE so it
will not report more than that many errors. Have a look through the
documentation.

rossum

Oct 3 '08 #6
But for 1 error I get 20 reports. It's like I'm back in the 80's compiling
COBOL apps from the command line :-)

Oct 3 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Eric Osman | last post by:
My javascript program has reason to want to stop. For example, function A has 5 lines, the second of which calls function B, which has 5 lines, the first of which calls function C. But...
2
by: Mal | last post by:
Greetings. I have a perplexing problem....please help. I am having a problem with an insert query. (SQL below) When I run the query via code (executing the SQL string) it crashes Access and...
2
by: Martyn Fewtrell | last post by:
Dear All I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work. I believe it to be specific to the server as if I create an ASP.Net page on the...
7
by: jab3 | last post by:
Hello. I'm wondering if someone can answer something I'm sure has been answered a thousand times before. I am apparently just too dumb to find the answer. :) I've found information about the...
1
by: dfetrow410 | last post by:
Is there a setting in VS to stop the debugging prosess when is finds a compile error?
7
by: shai | last post by:
I am working at .net 1.1, writing in c#. I have windows service with a COM object. Every unexpected time The COM object throw an error that make my service get stuck (do not respond). I can catch...
5
by: =?Utf-8?B?SmVycnkgSg==?= | last post by:
In debug mode, I want to be able to stop on the first executed line in my aspx.vb code page without setting a specific break point. Is there a way to do that? -- Jerry J
6
by: Phil Stanton | last post by:
I am running a query that calls a function used to format addresses depending on the width of a control on a report that shows that address. The same query is used as the RecordSource of lots of...
0
by: mattcfisher | last post by:
Hi, I have two windows services running together. One is the main program, and one is an "updater" wrapper for the main. The updater service starts and stops the main one (as in you should never...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.