|
-
April 16th, 2011, 04:58 PM
#1
post build conditions
Hi ive just started using build events so im not very good at it yet, ive managed to rename an assembly once compiled like this
rename $(TargetFileName) $(TargetName).customextention
which changes the extention from .exe/.dll to .customextention
however once compiled and renamed, when i compile my solution without making changes to that project i get an error saying it cant rename a file that isnt there. so my question is how do i do something like this which doesnt work
if Exists $(TargetFileName) rename $(TargetFileName) $(TargetName).customextention
-
April 16th, 2011, 05:10 PM
#2
Re: post build conditions
My error is because $(TargetName).customext already exists so what i actualy need to do is
if exists $(TargetName).customext delete $(TargetName).customext
so to ammend my question how do i do that?
-
April 19th, 2011, 02:49 AM
#3
Re: post build conditions
What about:
Code:
move /y $(TargetFileName) $(TargetName).customextention
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|