473,657 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Conditional compilation symbols

Is there a way to use conditional compilation symbols to change the
output path for the build, change the exe name and also change the the
exe icon?

I have an application that has "skins". I use the symbols to change
from one skin to another, but i'd like to streamline the process of
compilation.

Is this possible maybe via conditional symbols or pre build events?

Thanks

Aug 2 '07 #1
3 4181
Goose14 wrote:
Is there a way to use conditional compilation symbols to change the
output path for the build, change the exe name and also change the the
exe icon?

I have an application that has "skins". I use the symbols to change
from one skin to another, but i'd like to streamline the process of
compilation.

Is this possible maybe via conditional symbols or pre build events?
I think you should look at build tools like NAnt and MSBuild
instead of preprocessing.

Arne
Aug 2 '07 #2
On Aug 2, 5:45 pm, Arne Vajhøj <a...@vajhoej.d kwrote:
Goose14 wrote:
Is there a way to use conditional compilation symbols to change the
output path for the build, change the exe name and also change the the
exe icon?
I have an application that has "skins". I use the symbols to change
from one skin to another, but i'd like to streamline the process of
compilation.
Is this possible maybe via conditional symbols or pre build events?

I think you should look at build tools like NAnt and MSBuild
instead of preprocessing.

Arne
Are these my only options?

-G

Aug 6 '07 #3
Goose14 wrote:
On Aug 2, 5:45 pm, Arne Vajhøj <a...@vajhoej.d kwrote:
>Goose14 wrote:
>>Is there a way to use conditional compilation symbols to change the
output path for the build, change the exe name and also change the the
exe icon?
I have an application that has "skins". I use the symbols to change
from one skin to another, but i'd like to streamline the process of
compilation .
Is this possible maybe via conditional symbols or pre build events?
I think you should look at build tools like NAnt and MSBuild
instead of preprocessing.

Are these my only options?
It is all that I can come up with. That does not exclude the possibility
of better solutions.

Arne
Aug 6 '07 #4

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

Similar topics

2
2584
by: FireStarter | last post by:
Guys, in the code that follows, why does the method F() still compile, even if DBG is undefined? Inside method G(), the code inside <#if DBG> does not compile (notice that I can write whatever I want in there, I will not receive a compilation error). I do get such an error in F() - because of the garbage I intentionally put there - but F() should not compile in the first place. Am I misusing this attribute?! #undef DBG
1
3319
by: A.M-SG | last post by:
Hi, We have a solution with several c# projects within it. How can I define solution wide conditional compilation symbols?
5
7087
by: Rob | last post by:
By default, the web.config file of an ASP.NET application contains the following debug attribute for the compilation element: <compilation debug="true"/> My question is this: When doing the the final build, the compile of the application is done in "Release" mode. The .dll file is created without a ..pdb file. Is it still necessary to change the debug attribute to "false" during the final build when compiling in "Release" mode...
1
1495
by: Hossein Farkho | last post by:
I had a ASP.NET 1.1 project with 2 ".csproj" files, each one had different sets of compiler symbols (directives) so I could use the same code and compile two different versions of the project very easily. After converting to ASP.NET 2.0, since there is no project file, there is no way to set symbols in VS 2005 IDE. Now I am looking for a solution. I simply don't want to maintain two different code sets or change a constant manually...
4
2795
by: Bob | last post by:
Hi, In VS2003 conditional compilation constants and their state could be defined at project level. I was using this to control what features where offered by various builds. i.e. Feature1=true,Feature2=false, ... VS2005 seems to either allow the existance of the constant or not. ie. You must omit a constant not declare it to be false This means that the list no longer declares the state of all the options.
3
4230
by: ezmeralda | last post by:
Hello, I have some code which shall be compiled in .NET v1.1 and v2.0 but which has to be different for the two .NET-Versions. Therefore I need to use a construct like #if NET_20 <2.0 specific code>
6
2847
by: maxwell | last post by:
I'm trying to use the gpp utility (Gnu points to http://en.nothingisreal.com/wiki/GPP) to do conditional compilation in Python, and I'm running into a problem: the same '#' character introduces Python comments and is used by default to introduce #ifdef etc. lines. Here's an example of what I'm trying to do: #ifdef DEBUG stderr.write("variable is...") #details of msg omitted #endif
1
2182
by: Sagaert Johan | last post by:
Hi Is there a constant i could use to force conditional compilation based on whether i compile for CF or the Full NET framework ? Johan
3
2337
by: =?Utf-8?B?U3VyZXNo?= | last post by:
Anyway to do the following in aspx HTML? Currently in my codebehind: #if SOMECONDITION using MYBL=MyNamespace.Biz #else using MYBL=MyNamespace.WebServiceBiz #endif
0
8833
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8737
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8509
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
7345
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
6174
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
5636
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
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1730
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.