
Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
I used 'System.Diagnostics.Debugger.IsAttached'
Works like a charm...thanks a lot.
regards,
Maneesh
> "Maneesh" <maneeshkhare@gmail.com> schrieb:
> > Is there a way in C# to detect which build the current run is in (debug
[quoted text clipped - 6 lines]
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Thomas W. Brown - 22 Aug 2006 17:46 GMT
That probably won't work if you simply run the code outside of Visual Studio
but it was, nonetheless, built from the Debug configuration. But then,
perhaps that's exactly what you need -- to know at runtime whether you
actually are debugging or not -- not which configuration was used to build
the code.
-- TB
> I used 'System.Diagnostics.Debugger.IsAttached'
> Works like a charm...thanks a lot.
[quoted text clipped - 12 lines]
> > M V P <URL:http://dotnet.mvps.org/>
> > V B <URL:http://dotnet.mvps.org/dotnet/faqs/>