G
Guest
I've got a function that needs to work slightly differently on the
development server from the production server, but of course I don't want to
be changing code just before compiling a release version!?
I'm thinking I could use some #if #else #endif type statements to change
certain things, depending on the build type. I'm thinking of something like
this in my .cs file...
#if DEBUG
private string MyFunc()
{
// debug version
}
#else
private string MyFunc()
{
// release version
}
#end if
Would this work!? If not, how could I achieve a similar effect? (.net 2)
Cheers
Dan
development server from the production server, but of course I don't want to
be changing code just before compiling a release version!?
I'm thinking I could use some #if #else #endif type statements to change
certain things, depending on the build type. I'm thinking of something like
this in my .cs file...
#if DEBUG
private string MyFunc()
{
// debug version
}
#else
private string MyFunc()
{
// release version
}
#end if
Would this work!? If not, how could I achieve a similar effect? (.net 2)
Cheers
Dan