I think ReSharper is nearly unusable without parsing conditional compilation

Will ReSharper support parsing conditional compilation any time?

like this:

class Foo
{
#if WINDOWS
public const string Bar = "Test.";
#else
public const string Bar = "Toast.";
#endif
public static void Ooops()
{
Console.WriteLine(Bar+"Green");
}
}

ReSharper is a very nice tool, but i use things like this very often, in
bigger projects most of my files have masses of false errors that makes
ReSharper unusable.

As long as resharper can't support parsing things like this i will further
use visual-assist

A dirty but helpful workaround would be this

class Foo
{
#if WINDOWS
#region RESHARPER_IGNORE
public const string Bar = "Test.";
#endregion
#else
public const string Bar = "Toast.";
#endif
public static void Ooops()
{
Console.WriteLine(Bar+"Green");
}
}


Greets

Carsten Jendro


0
2 comments
Avatar
Permanently deleted user

Well, personally, I'm involved in 4 different projects amounting to millions
of lines of code and we have NEVER used conditional compilations.

Will ReSharper support parsing conditional compilation any time?

like this:

class Foo
{
#if WINDOWS
public const string Bar = "Test.";
#else
public const string Bar = "Toast.";
#endif
public static void Ooops()
{
Console.WriteLine(Bar+"Green");
}
}
ReSharper is a very nice tool, but i use things like this very often,
in bigger projects most of my files have masses of false errors that
makes ReSharper unusable.

As long as resharper can't support parsing things like this i will
further use visual-assist

A dirty but helpful workaround would be this

class Foo
{
#if WINDOWS
#region RESHARPER_IGNORE
public const string Bar = "Test.";
#endregion
#else
public const string Bar = "Toast.";
#endif
public static void Ooops()
{
Console.WriteLine(Bar+"Green");
}
}
Greets

Carsten Jendro



0
Avatar
Permanently deleted user

Hello Amir,
I cannot find the original post, so I suppose the message arrived to the
wrong newsgroup. BTW, ReSharper 2.0 EAP builds support conditional compilation.

Well, personally, I'm involved in 4 different projects amounting to
millions of lines of code and we have NEVER used conditional
compilations.

>> Will ReSharper support parsing conditional compilation any time?
>>
>> like this:
>>
>> class Foo
>> {
>> #if WINDOWS
>> public const string Bar = "Test.";
>> #else
>> public const string Bar = "Toast.";
>> #endif
>> public static void Ooops()
>> {
>> Console.WriteLine(Bar+"Green");
>> }
>> }
>> ReSharper is a very nice tool, but i use things like this very often,
>> in bigger projects most of my files have masses of false errors that
>> makes ReSharper unusable.
>> As long as resharper can't support parsing things like this i will
>> further use visual-assist
>>
>> A dirty but helpful workaround would be this
>>
>> class Foo
>> {
>> #if WINDOWS
>> #region RESHARPER_IGNORE
>> public const string Bar = "Test.";
>> #endregion
>> #else
>> public const string Bar = "Toast.";
>> #endif
>> public static void Ooops()
>> {
>> Console.WriteLine(Bar+"Green");
>> }
>> }
>> Greets
>> Carsten Jendro
>>
Thanks,
Andrey Simanovsky


0

Please sign in to leave a comment.