473,396 Members | 1,921 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.

Rename application

Hi there,

I need to be able to change the name of my application through a
pre-compile constant, is this possible?

I want to try to avoid having 2 separate code trees for an application I
am making, there are 2 variants, each with their own unique graphics, name,
colours etc. I can do most of these via pre-compile constants but I have no
idea how I would go about changing the name.

Many thanks in advance!

Nick.
Feb 23 '07 #1
5 1376
Hey there,

I found out how to do it, by editing the assemblyinfo file manually and
putting pre-compile checks to the relevant entries in there.

Nick.

"NickP" <a@a.comwrote in message
news:uO*************@TK2MSFTNGP02.phx.gbl...
Hi there,

I need to be able to change the name of my application through a
pre-compile constant, is this possible?

I want to try to avoid having 2 separate code trees for an application
I am making, there are 2 variants, each with their own unique graphics,
name, colours etc. I can do most of these via pre-compile constants but I
have no idea how I would go about changing the name.

Many thanks in advance!

Nick.

Feb 23 '07 #2
Actually, i'm wrong, that was the title, not assembly name, still need to
change this somehow...

Nick.

"NickP" <a@a.comwrote in message
news:ed*************@TK2MSFTNGP05.phx.gbl...
Hey there,

I found out how to do it, by editing the assemblyinfo file manually and
putting pre-compile checks to the relevant entries in there.

Nick.

"NickP" <a@a.comwrote in message
news:uO*************@TK2MSFTNGP02.phx.gbl...
>Hi there,

I need to be able to change the name of my application through a
pre-compile constant, is this possible?

I want to try to avoid having 2 separate code trees for an application
I am making, there are 2 variants, each with their own unique graphics,
name, colours etc. I can do most of these via pre-compile constants but
I have no idea how I would go about changing the name.

Many thanks in advance!

Nick.


Feb 23 '07 #3
Nick,

How are you, are you talking about the information that is in the solution
properties to find by right clicking on that? (That treetop in the solution
explorer)

Cor

"NickP" <a@a.comschreef in bericht
news:uC**************@TK2MSFTNGP02.phx.gbl...
Actually, i'm wrong, that was the title, not assembly name, still need to
change this somehow...

Nick.

"NickP" <a@a.comwrote in message
news:ed*************@TK2MSFTNGP05.phx.gbl...
>Hey there,

I found out how to do it, by editing the assemblyinfo file manually
and putting pre-compile checks to the relevant entries in there.

Nick.

"NickP" <a@a.comwrote in message
news:uO*************@TK2MSFTNGP02.phx.gbl...
>>Hi there,

I need to be able to change the name of my application through a
pre-compile constant, is this possible?

I want to try to avoid having 2 separate code trees for an
application I am making, there are 2 variants, each with their own
unique graphics, name, colours etc. I can do most of these via
pre-compile constants but I have no idea how I would go about changing
the name.

Many thanks in advance!

Nick.



Feb 24 '07 #4
Hi Cor,

I'm very well thankyou, busy, but well :-) How are you?

Yeah, if I doubly click on "My Project" and then goto the Application
tab. The first item is "Assembly name", I would like this to change with a
compiler switch, or is this not possible? The assembly isn't used by
anything else so I have considered just renaming it after rebuilding, that
would probably do the same thing anyway.

Thing is I have an application that changes quite allot of bits with a
compiler switch, and the only things left remaining are the Assembly name
and the application icon. I'm not really bothered about the namespace as
the user won't see any of that anyway.

Maybe I should just do a simple macro to make the changes, pre-build, I
guess?

Nick.

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:OC****************@TK2MSFTNGP02.phx.gbl...
Nick,

How are you, are you talking about the information that is in the solution
properties to find by right clicking on that? (That treetop in the
solution explorer)

Cor

"NickP" <a@a.comschreef in bericht
news:uC**************@TK2MSFTNGP02.phx.gbl...
>Actually, i'm wrong, that was the title, not assembly name, still need to
change this somehow...

Nick.

"NickP" <a@a.comwrote in message
news:ed*************@TK2MSFTNGP05.phx.gbl...
>>Hey there,

I found out how to do it, by editing the assemblyinfo file manually
and putting pre-compile checks to the relevant entries in there.

Nick.

"NickP" <a@a.comwrote in message
news:uO*************@TK2MSFTNGP02.phx.gbl...
Hi there,

I need to be able to change the name of my application through a
pre-compile constant, is this possible?

I want to try to avoid having 2 separate code trees for an
application I am making, there are 2 variants, each with their own
unique graphics, name, colours etc. I can do most of these via
pre-compile constants but I have no idea how I would go about changing
the name.

Many thanks in advance!

Nick.



Mar 1 '07 #5
Wohoo! Found a pretty good fix,

Post build macro...

copy "$(TargetDir)\$(TargetFileName)" "$(TargetDir)\New name.exe"

That way my build process will be seamless without me having to rename
manually. Great stuff!

Nick.

"NickP" <a@a.comwrote in message
news:OK**************@TK2MSFTNGP06.phx.gbl...
Hi Cor,

I'm very well thankyou, busy, but well :-) How are you?

Yeah, if I doubly click on "My Project" and then goto the Application
tab. The first item is "Assembly name", I would like this to change with
a compiler switch, or is this not possible? The assembly isn't used by
anything else so I have considered just renaming it after rebuilding, that
would probably do the same thing anyway.

Thing is I have an application that changes quite allot of bits with a
compiler switch, and the only things left remaining are the Assembly name
and the application icon. I'm not really bothered about the namespace as
the user won't see any of that anyway.

Maybe I should just do a simple macro to make the changes, pre-build, I
guess?

Nick.

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:OC****************@TK2MSFTNGP02.phx.gbl...
>Nick,

How are you, are you talking about the information that is in the
solution properties to find by right clicking on that? (That treetop in
the solution explorer)

Cor

"NickP" <a@a.comschreef in bericht
news:uC**************@TK2MSFTNGP02.phx.gbl...
>>Actually, i'm wrong, that was the title, not assembly name, still need
to change this somehow...

Nick.

"NickP" <a@a.comwrote in message
news:ed*************@TK2MSFTNGP05.phx.gbl...
Hey there,

I found out how to do it, by editing the assemblyinfo file manually
and putting pre-compile checks to the relevant entries in there.

Nick.

"NickP" <a@a.comwrote in message
news:uO*************@TK2MSFTNGP02.phx.gbl...
Hi there,
>
I need to be able to change the name of my application through a
pre-compile constant, is this possible?
>
I want to try to avoid having 2 separate code trees for an
application I am making, there are 2 variants, each with their own
unique graphics, name, colours etc. I can do most of these via
pre-compile constants but I have no idea how I would go about changing
the name.
>
Many thanks in advance!
>
Nick.
>




Mar 8 '07 #6

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

Similar topics

10
by: Alex | last post by:
Hi, We have UDB 7.2 running on window 2000 server name SERVERDB2UDB01(example) Until we move to version 8 we want to move our production on another sever Steps we want to do 1. install...
0
by: altacct | last post by:
I've got an application with an ADP front end and a SQL Server back end. To enable the users to share reports, there is a separate ADP that sits on the file server, and the front end file (one on...
3
by: Mullin Yu | last post by:
i've created a console application, and by default the filename will be my project/solution name, ie. testCmd.exe but, can i change it during the build/deployment process to testCmdNew.com ...
3
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
4
by: ElGordo | last post by:
Gurus: I have been working on a .Net project called "SolutionA" which was given to me (already completed) for some time. The solution had some baseline web functionality, and I was asked to...
3
by: Erik Foreman | last post by:
I am using a folderbrowserdialog object to prowse to a folder then once in that folder I am going to have my program rename all of the files in that folder. I know the rename funchtion but I am not...
5
by: Tony Meyer | last post by:
On Windows, if I do os.rename(old, new) where old is a file that is in-use (e.g. python itself, or a dll that is loaded), I would expect that an error would be raised (e.g. as when os.remove is...
4
by: Russell Warren | last post by:
I've been having a hard time tracking down a very intermittent problem where I get a "permission denied" error when trying to rename a file to something that has just been deleted (on win32). ...
1
by: cheesey_toastie | last post by:
I have a long query which I have set off and would like to stop, and rename one of the tables used. My query is due to my lack of understanding of the underlying structure of MSSQL-Server... ...
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: 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: 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
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.