conditional compilation
-
1. září 2012 18:57
Hi Everyone:
I am using VB.net 2008 and I am doing a conditional compilation using #Constant and #if...#Else...#endif. I was wondering if there is any way of giving my exe filenames based on the condition. For example if I have two versions of my program (let's say Basic and Advanced), I want something like this:
#if MyVer="Basic" then
count =10
MyEXEFileName="Basic.exe"
#else
count =20
MyEXEFileName="Advanced.exe"
#endif
Thanks for your help.
Bob
Všechny reakce
-
1. září 2012 19:46
I believe you can rename the output executable in a post-build step within your project. This is in the project propeties, on the Compile tab, under the Build Events button. This link show how to copy the results in the post-build, but renaming would be similar: http://stackoverflow.com/questions/4664386/copy-bin-files-on-to-physical-file-location-on-post-build-event-in-vs2010
--
Mike- Označen jako odpověď Shanks ZenMicrosoft Contingent Staff, Moderator 18. září 2012 7:23