Odpovědět 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