How to check if DLL is debug-compiled [duplicate]
Asked Answered
A

1

1

Possible Duplicate:
How to tell if .net app was compiled in DEBUG or RELEASE mode?

Simple Question; Is there an easy way to check whether a .NET 1.1 assembly is debug-compiled or not?

Append answered 14/11, 2008 at 13:31 Comment(1)
Try here HTHBombardon
W
0

It depends on how you want to check. If you want to check in code when you are actually running, if the code is in debug mode, you can use:

Debug.Assert(MyFunction())

Using that code, MyFunction will only run when the dll it is located in is compiled in debug mode.

Whipple answered 14/11, 2008 at 13:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.