How to rename of build/deployed application filename and extension

  • Thread starter Thread starter Mullin Yu
  • Start date Start date
M

Mullin Yu

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
[change both filename and extension]

my ultimate goal is to write a deployment script to deploy the application
with different filename and extension to a folder like the following

devenv /Build "testCmd.sln"

i don't know where to config on the vs.net ide.

any ideas?

thanks!

cheers,
mullin
 
Huh, a COM file is very different from EXE.
To make a COM file programatically you would have to do something like csc
/target:com (which doesn't exist). /out:### will let you rename it to
COM, but it would still be an EXE.
Why would you want to rename it to COM anyway? It would be like an EXE
program disguising itself as COM for no reason, but it would still run as
EXE due to some weird desicion in Windows to allow this.
 
but, can i use devenv as i have quite lots of reference, and don't want
write them one by one. it's so troublesome.

/out option of devenv is the log file of the build.

thanks!

regards,
mullin

Subramanian said:
Hi,

you can build the application using the csc prompt build the application by
using the csc Command prompt and with /out: option you can build the
application with the a different name.

regards
Manian
Mullin Yu said:
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
[change both filename and extension]

my ultimate goal is to write a deployment script to deploy the application
with different filename and extension to a folder like the following

devenv /Build "testCmd.sln"

i don't know where to config on the vs.net ide.

any ideas?

thanks!

cheers,
mullin
 
i need this because i want to run a single application e.g. test which will
either start the batch version or GUI version.

the technique is shown at the following:
http://msdn.microsoft.com/msdnmag/issues/04/02/CQA/default.aspx

but, i think may be due the i'm using vs.net 2002, so i don't have the
"Custom build setup".

indeed, i manually rename test.exe to test.com, and it really works. i can
start the batch or gui version of the application

e.g. c:\>test => GUI
c:\>test -l => batch

thanks!

regards,
mullin
 
Back
Top