473,503 Members | 2,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to identify whether an assembly is in Debug or Release?

Greeting,

Anyone know any tool to identify whether an assembly is in Debug or
Release?
I can use "Dependency Walker" from VS 6. How about VS .NET? Got
anything tool like that?
Jul 21 '05 #1
3 1824
Anyone know any tool to identify whether an assembly is in Debug or
Release?


You can build your own tool that uses reflection to look for the
System.Diagnostics.DebuggableAttribute on the assembly. If it's there
and the IsJITTrackingEnabled property is set to true it should be a
debug build.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2
Anyone know any tool to identify whether an assembly is in Debug or
Release?


You can build your own tool that uses reflection to look for the
System.Diagnostics.DebuggableAttribute on the assembly. If it's there
and the IsJITTrackingEnabled property is set to true it should be a
debug build.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #3
I got just the thing you need: http://www.sliver.com/dotnet/IsDebug/

Thank Jeff Key for this little gem.
"Kelmen Wong" <ke****@hotmail.com> wrote in message
news:84**************************@posting.google.c om...
Greeting,

Anyone know any tool to identify whether an assembly is in Debug or
Release?
I can use "Dependency Walker" from VS 6. How about VS .NET? Got
anything tool like that?

Jul 21 '05 #4

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

Similar topics

2
7391
by: Gawel | last post by:
thanks in advance -- Gawel ------------------------------- Pierwszy ³yk z pucharu nauk przyrodniczych czyni ateist±, ale na dnie pucharu czeka Bóg. Werner Heisenberg
4
15035
by: Claire | last post by:
How do I determine whether Im running in debug or release mode from code please. thanks Claire
11
3098
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
0
1509
by: Shawn Hogan | last post by:
I'm getting two different results when I call System.Reflection.Assembly.GetCallingAssembly when compiling in Release and debug modes. When i compile my application using the "Debug" configuration...
2
273
by: Kelmen Wong | last post by:
Greeting, Anyone know any tool to identify whether an assembly is in Debug or Release? I can use "Dependency Walker" from VS 6. How about VS .NET? Got anything tool like that?
2
1797
by: job | last post by:
I put my StrongNameKey.snk in my root foler. in my assemblyinfo.vb I have: <Assembly: AssemblyKeyFileAttribute("StrongNameKey.snk")> I get the error "Error creating assembly manifest: Error...
5
2474
by: James Wong | last post by:
Hi, Can VB.Net change the next assembly version automatically when I compile the program? <Assembly: AssemblyVersion("1.0.0.1")> <Assembly: AssemblyFileVersion("1.0.0.1")> Thanks
0
1386
by: Dmitrii | last post by:
My C# project has 4-configuration: Debug, Release, DebugPlus, and ReleasePlus. In each of these configurations the C# program should consume (be "linked" to) a different Assembly.dll build...
7
5607
by: bonk | last post by:
I have a c# project as part of a larger VS 2005 solution that always gets build optimized and I therefore can not evaluate any values while debugging through the code ("Cannot evaluate expression...
0
7093
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
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7349
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...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
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...
1
5022
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
4688
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
399
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.