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

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 4171
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.dkwrote:
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.dkwrote:
>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
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...
1
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
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...
1
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...
4
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....
3
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...
6
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...
1
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
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
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: 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...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.