I may be confused but it seems that you have to include the line
numbers in your souce code if you want to reference them in an error
handler. Is that correct?
You should avoid line numbers in .NET for error handlers. That was used in
VB6 using the undocumented Erl function. In .NET you should use exception
handlers. In Debug configuration the exception will tell the file and line,
but not in Release configuration (no .pdb file is generated). In Release
configuration you only get the class/procedure name, but if you use
procedures as short as possible (a good programming practice), knowing the
exception you can easily guess what statement failed. If not, most
exceptions should be reproducible on your side after being reported by the
user, because otherwise it is somewhat risky to try to fix them without
knowing the implications.
If so, then I want to add error numbers prior to my final build.
I used to use a tool to do that in VB6 and it worked great.
MZ-Tools, by chance?
--
Carlos J. Quintero
MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com