473,748 Members | 8,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Release Builds

In VS.NET 2005, I have C# class library projects and when I switch to conduct
a release build ... the build still creates program debug files (PDB). I
have tried everything.... I have manually deleted all PDBs before conducting
the RELEASE build...

Any known issues with Release builds ?

Any options somewhere I am missing ?

--
Philip
May 11 '06 #1
4 2684
Philip wrote:
In VS.NET 2005, I have C# class library projects and when I switch to conduct
a release build ... the build still creates program debug files (PDB). I
have tried everything.... I have manually deleted all PDBs before conducting
the RELEASE build...


If they're inside a Solution you might want to check the
Configuration Manager settings for the solution; it's possibly still
set to build the class library projects as Debug ones.

As far as I can tel the toolbar "Release/Debug" drop down changes
the setting for the solution, not the project.

--
Chris Crowther
Developer
J&M Crowther Ltd.
May 11 '06 #2
kh
philip

to stop pdb files being generated take a look at project properties, build
tab, advanced. Set "Debug Info" to "None".

if you want to keep the default Release configuration unchanged you can
create a new configuration based on the Release configuration and have this
"Debug Info" setting apply only to this new configuration. this can be done
from the Configuration Manager.

Perhaps someone else can clarify why emitting pdb files is the default for
release builds?

kh

May 11 '06 #3
I've found it helpful that Release emits pdb files; it allows me to
step through code without adding the project temporarly to my solution.

What I now do is run my program, goto Debug -> Windows -> Modules. I
find the module I'd like to step into and select Load Symbols and load
the Release pdb. At some point it will ask me to locate source code,
and I tell it where it may find the source for the release module. I
can now step into code.. and this is much simpler to do than temporarly
add the project, retarget references, debug, then undo those changes.

My question is this; why is it a big deal of the pdb gets generated?

May 11 '06 #4
kh
i'm guessing philip's question relates to the output which will be deployed
to user machines, which was why i investigated this "problem" for my own
purposes. deploying debug files does not seem appropriate in this context,
although admittedly it is unlikely to cause problems.

May 12 '06 #5

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

Similar topics

2
4325
by: brianlanning | last post by:
I'm trying to write a function that can reliably know the name of the calling method. I've figured out how to do this: string methodname = (new StackTrace()).GetFrame(1).GetMethod().Name; This seems to get the name of the method that called the current method. But there are two problems. One is that I have to hardcode one step back in the stack. When switching to a release build, this may not work corerctly because of optimization....
3
2196
by: | last post by:
Since I need to dotfuscate my exe file anyway, does it make any difference if I use Debug or Release versions. Would a Debug version be easier to decompile/study/reverse engineer than a Release version, both having been dotfuscated by the standard dotfuscator of visual studio 2003 ? Tia
6
4116
by: swartzbill2000 | last post by:
Hello, I have a VB 2005 Express project with a TraceListener-derived class to route Debug.Print output to a log file. It works fine for Debug builds. What is the correct combination of changes to make it work in Release build? Bill
1
2252
by: TheSteph | last post by:
Hi, Does anybody know what's the difference between the "Debug build" of a C# application and the "Release build" ? In my case, both are 774.144 bytes, and both seems to have the same
5
3219
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 release mode, there are quite few C4701 warnings and some C2679 errors. Note that some of warning and error happens in debug mode as well and was fixed. Anyone know why some of warning and error happens only in release mode?
0
1121
by: Anthony Baxter | last post by:
On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.4.4 (release candidate 1). Python 2.4.4 is a bug-fix release. While Python 2.5 is the latest version of Python, we're making this release for people who are still running Python 2.4. See the release notes at the website (also available as Misc/NEWS in the source distribution) for details of the more than 80 bugs squished...
6
9142
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the output from the DLL compile: /OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
1
374
by: Daniel | last post by:
do release builds have the same amount of info in exceptions? e.g. will exceptions cought in release builds contain stack trace etc.?
3
15519
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 line number of code that throws an exception. Specifically, I can have an error logging routine that, amongst other things parses the call stack and tells me the specific line of code that choked. It is also my understanding that if building in...
5
1800
by: Andy B | last post by:
How do you tell vs2005 to keep debug info out of your release builds? When I build a release and a debug version, there seems to be no difference in them at all...The release builds still have the debug databases with them...
0
8989
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8241
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2213
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.