473,322 Members | 1,614 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,322 software developers and data experts.

SetUp project includes debug dependencies

bob
Hello,

I have a SetUp project in my solution. When I add the primary output
of certain projects to it they add their project dependencies twice -
the debug and the release.

Anyone known what I'm doing wrong? I'm worried that I'll end up
shipping the debug version.

Thanks,

Bob
Nov 16 '05 #1
1 2618
I'd start by checking Project Properties > Configuration Properties
to make sure the project is in release mode.

In your code you can also write a short test like this example...

// Framework Classes
using System.Diagnostics;

// Class Definition
[Conditional("DEBUG")]
public void InitializeDebugMode( )
{
// A known label used for something useful within the UI
// or a test label placed inconspicuously used for feedback only
lblSomeLabel.Text = "Conditional: Debug Mode";
}

// Page_Load
if(!Page.IsPostBack)
{
#if DEBUG
Debug.WriteLine("Program Running in Debug Mode");
InitializeDebugMode( );
}

Compile and run the program. Look for the Debug.WriteLine
results in the OutPut window. Using the label is another level of
visual confirmation and may not be necessary.

The #if is called a preprocessor directive and can be disabled
by entering #undef DEBUG as the *very first line of code*
in the entire .cs file. I keep an //#undef there and add or remove
comments as may be required.
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
Hello,

I have a SetUp project in my solution. When I add the primary output
of certain projects to it they add their project dependencies twice -
the debug and the release.

Anyone known what I'm doing wrong? I'm worried that I'll end up
shipping the debug version.

Thanks,

Bob

Nov 16 '05 #2

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

Similar topics

7
by: lpe | last post by:
http://www.pycode.com I was kinda suprised when I could not find any good sites with 3rd party modules (other than the Vaults of Parnassus, where you must host files elsewhere), so I decided to...
15
by: cody | last post by:
We have a huge project, the solutuion spans 50 projects growing. Everytime I want to start the project I have to wait nearly over 1 minute for the compiler to complete building. This is...
5
by: Dave L | last post by:
This is a strange problem that's plagued me for years using the .NET tools. The problem is this: ..NET applications installed on a virgin machine (framework installed, but no ..NET tools...
3
by: hangten | last post by:
I have created a setup project for my application. Within this setup project I need to install another .exe file. When I add the .exe file to the setup program, I get a message "unable to find...
2
by: Keith Kowalski | last post by:
Hello I have a vb.net windows application that I need to make re-Distributable, I can run it on my development machine fine, I can also run it on my old development machine fine, When I try to run...
0
by: anthony | last post by:
Hi, I have a MSCOMM object on my VB.NET project. When I run the program in development environment, everything is running fine. So I added a setup project to create a setup program, when I was...
1
by: steve | last post by:
Hi All I have an application with a setup project which has worked faultlessly for months Today I added some graphs to the Report viewer in VB.net 2005 and when I build the setup project and...
1
by: =?Utf-8?B?S2VpdGggRHVQb250?= | last post by:
I have created a setup project for a forms application that I will be deploying in the near future. I have added the primary output to the setup project and all dependencies have been correctly...
2
by: Norman Diamond | last post by:
My C# code is I18N'ed by appropriately naming and editing .resx files. At execution time, it works. My C++ code is somewhat I18N'ed. When I put UI code in C++ I use .rc files. When I link to a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.