PRB: Conditional compiles

r

  1. shows an error if two functions defined in same class with same body. but even if i enclose one of the functions in a conditional compile, it continues to give same error.


vs2k3 does not. here comes the example

#if (DEBUG)
void MyDebugFunction()
{
Debug.WriteLine( "Some test" );
}
#else
void MyDebugFunction()
{
// in release version, debug is disabled
}
#endif


thanks

3 comments
Comment actions Permalink

Hello edo,

what ReSharper's version you're using? This is a known problem in 1.x that
has
been partially resolved in 2.0 (currently available as EAP).

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

r

  1. shows an error if two functions defined in same class with same

body. but even if i enclose one of the functions in a conditional
compile, it continues to give same error.

vs2k3 does not. here comes the example

#if (DEBUG)
void MyDebugFunction()
{
Debug.WriteLine( "Some test" );
}
#else
void MyDebugFunction()
{
// in release version, debug is disabled
}
#endif
thanks



0
Comment actions Permalink

Dear Mr Dmitry,

i am using trial of 1.5. before posting i searched the forum using keyword "conditional", search yielded no result. i am sorry to repost a known situation.

how can i access the "early access program" version?

sincerely

edo kan

0
Comment actions Permalink

You may download it at
http://www.jetbrains.net/confluence/display/ReSharper/Download

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Dear Mr Dmitry,

i am using trial of 1.5. before posting i searched the forum using
keyword "conditional", search yielded no result. i am sorry to repost
a known situation.

how can i access the "early access program" version?

sincerely

edo kan



0

Please sign in to leave a comment.