473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

release and debug mix during testing

Does C# have problems when running a mix of release and debug builds of
projects? I'm talking about something similar to the DLL hell you could get
into with VC6 and the MFC shared library. If not, why do the debug and
release projects write to \Debug and \Release subdirectories by default? If
so, what do I need to do to be able to mix them without problems?
Jan 31 '07 #1
2 3018
The reason for separate directories is obvious to me: you want to be able to differentiate between
the modules built with extra debug information and those that weren't, even though the filenames may
be the same for both builds. If they were all thrown into the same folder, the release and debug
versions would always be overwriting each other.

As for the intermixing being a problem, I don't think it would be nearly as troublesome as with a
more powerful lower-level language like C++. All I can suggest is "try it, and let us know if you
find a problem".

"Jim Cutler" <Ji*******@discussions.microsoft.comwrote in message
news:18**********************************@microsof t.com...
Does C# have problems when running a mix of release and debug builds of
projects? I'm talking about something similar to the DLL hell you could get
into with VC6 and the MFC shared library. If not, why do the debug and
release projects write to \Debug and \Release subdirectories by default? If
so, what do I need to do to be able to mix them without problems?

Feb 5 '07 #2
"Just trying it" is a bad idea. In C++ that could cause a bug that John
Robbins in his MS Press book "Debugging Applications for Microsoft .NET"
describes as "one of the most insidious bugs there is - a bug that could take
months to track down". Having lived through tracking down such a bug, I can
attest to the difficulty and didn't want to be burned again.

Fortunately, John Robbins was kind enough to reply to my question. His
answer as regards mixing release and debug C# code (NOT C++ which can still
have the problem when generating native code):
"The good news with .NET is that you can mix and match release and debug
builds without worry about any runtime issues. The C# compiler itself does
not produce native code, only the JIT (just in time) compiler. The .NET FCL
(framework class library) is full release build, so you don't have to worry
about much with it."
Feb 6 '07 #3

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

Similar topics

1
by: Eyal | last post by:
Hi, We have an issue with Debug Assertion showing in Release builds in Managed C++! I have created a small managed C++ project that looks like this: #include "stdafx.h" #using <mscorlib.dll>...
3
by: Petri J. Riipinen | last post by:
Hi, I'm writing a largish (>60 projects) solution with VS.NET 2003 using VB.NET as my implementation language. I'm using NUnit and NUnit VS.NET-addin to implement unit tests for my code. ...
2
by: John Beschler | last post by:
I have a c# function that runs fine in VS.Net when in debug mode; however, when I switch to Relase mode or compile the app, the function fails with "object refernce not set". Here is the whole...
4
by: whocares | last post by:
hi everyone. i'm currently experiencing a strange problem under vc++ 2005 express. i hope someone has a hint for me, i'm kind of lost atm. i'm using a vectors of pointers in my code. using...
9
by: Q. John Chen | last post by:
It is great to have an automated testing during development. BUT, How can I build the production release without nunit being included? THX. John p.s. I posted this in nunit group but...
5
by: B. | last post by:
We just recently move to code from VC++6 to VC++.NET 2005 and upgrade the warning level from 3 to 4. In debug mode, we compile the application with no warning no error, but when I build it in...
5
by: Tim Zych | last post by:
What factor would allow an unhandled exception to occur in a compiled project, versus no error for the same action during development? In other words, I have a project that, in development when I...
11
by: ThunderMusic | last post by:
Hi, I have a windows service that only loads a CSV file and import it's data using SqlBulkCopy in a newly created Sql Server 2005 table using 25000 rows batches. If I build the service in debug...
3
by: Bob Johnson | last post by:
It is my understanding - and please correct me if I'm wrong - that when building a project in debug mode, I can deploy the .pdb file along with the ..exe and thereby have access to the specific...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.