How do disable Resharper temporarily?

Yes, how do I 'turn-off' Resharper temporarily for debugging purposes?

I am getting some code error when Resharper is installed (but the code runs
fine when Resharper is removed), and VS2005 didnt complaint of anything
wrong.


5 comments
Comment actions Permalink

Hello Rosdi,

please describe in more detail what error do you get? In order to temporarily
disable ReSharper,
use Tools|Add-In Manager.


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

Yes, how do I 'turn-off' Resharper temporarily for debugging purposes?

I am getting some code error when Resharper is installed (but the code
runs fine when Resharper is removed), and VS2005 didnt complaint of
anything wrong.



0
Comment actions Permalink

Actually, I think it is not R# fault. I suspect VS2005 is too lenient or not
catching certain errors on purpose.
But I don't know, I am still exploring C#. You guys will decide whether it
is R# bugs or VS2005 bugs, or I am just an idiot.

Basically it involves partial classes. VS2005 do not complain when partial
classes (with the same methods/members) are repeated several times in
different .cs files. But once I install R#, I got tons of ''ambiguous
references' errors.

The reason it bothers me is that, I have a lots of .cs file generated by
wsdl.exe, and these files have repeated partial classes everywhere. In
VS2005 (without R#) the code works and runs just fine. But R# will give me
tons of ''ambiguous references' errors.

Here is sample code, note the repeated class in both file. VS2005 do not
complaint, R# does.

-- File1.cs --
namespace test {
public partial class ClassA {
private String name;

public String Name {
set { name = value; }
get { return name; }
}
}
}

-- File2.cs --
namespace test {
public partial class ClassA {
private String name;

public String Name {
set { name = value; }
get { return name; }
}
}
}


"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c8a894d91329af8c81ba094cf8dba@news.intellij.net...

Hello Rosdi,

>

please describe in more detail what error do you get? In order to
temporarily disable ReSharper,
use Tools|Add-In Manager.

>
>

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

>
>> Yes, how do I 'turn-off' Resharper temporarily for debugging purposes?
>>
>> I am getting some code error when Resharper is installed (but the code
>> runs fine when Resharper is removed), and VS2005 didnt complaint of
>> anything wrong.
>>
>



0
Comment actions Permalink

Forgot to mention that these classes are all web reference (right click, add
web reference).
Aside the .cs files, there are also a bunch of .xsd, .discomap, and .wsdl
files in there.

Maybe R# should also read these files before complaining 'ambiguous
reference'?.. no?


"Rosdi" <rosdi@null.com> wrote in message
news:dvqu7j$u4m$1@is.intellij.net...

Actually, I think it is not R# fault. I suspect VS2005 is too lenient or
not catching certain errors on purpose.
But I don't know, I am still exploring C#. You guys will decide whether it
is R# bugs or VS2005 bugs, or I am just an idiot.

>

Basically it involves partial classes. VS2005 do not complain when partial
classes (with the same methods/members) are repeated several times in
different .cs files. But once I install R#, I got tons of ''ambiguous
references' errors.

>

The reason it bothers me is that, I have a lots of .cs file generated by
wsdl.exe, and these files have repeated partial classes everywhere. In
VS2005 (without R#) the code works and runs just fine. But R# will give me
tons of ''ambiguous references' errors.

>

Here is sample code, note the repeated class in both file. VS2005 do not
complaint, R# does.

>

-- File1.cs --
namespace test {
public partial class ClassA {
private String name;

>

public String Name {
set { name = value; }
get { return name; }
}
}
}

>

-- File2.cs --
namespace test {
public partial class ClassA {
private String name;

>

public String Name {
set { name = value; }
get { return name; }
}
}
}

>
>

"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c8a894d91329af8c81ba094cf8dba@news.intellij.net...

>> Hello Rosdi,
>>
>> please describe in more detail what error do you get? In order to
>> temporarily disable ReSharper,
>> use Tools|Add-In Manager.
>>
>>
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>
>>> Yes, how do I 'turn-off' Resharper temporarily for debugging purposes?
>>>
>>> I am getting some code error when Resharper is installed (but the code
>>> runs fine when Resharper is removed), and VS2005 didnt complaint of
>>> anything wrong.
>>>
>>
>>
>



0
Comment actions Permalink

Hello Rosdi,

what does ReSharper say in the example you posted?


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

Actually, I think it is not R# fault. I suspect VS2005 is too lenient
or not
catching certain errors on purpose.
But I don't know, I am still exploring C#. You guys will decide
whether it
is R# bugs or VS2005 bugs, or I am just an idiot.
Basically it involves partial classes. VS2005 do not complain when
partial classes (with the same methods/members) are repeated several
times in different .cs files. But once I install R#, I got tons of
''ambiguous references' errors.

The reason it bothers me is that, I have a lots of .cs file generated
by wsdl.exe, and these files have repeated partial classes everywhere.
In VS2005 (without R#) the code works and runs just fine. But R# will
give me tons of ''ambiguous references' errors.

Here is sample code, note the repeated class in both file. VS2005 do
not complaint, R# does.

public String Name {
set { name = value; }
get { return name; }
}
}
}
public String Name {
set { name = value; }
get { return name; }
}
}
}
"Dmitry Shaporenkov (JetBrains)" <dsha@jetbrains.com> wrote in message
news:c8a894d91329af8c81ba094cf8dba@news.intellij.net...

>> Hello Rosdi,
>>
>> please describe in more detail what error do you get? In order to
>> temporarily disable ReSharper,
>> use Tools|Add-In Manager.
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> Yes, how do I 'turn-off' Resharper temporarily for debugging
>>> purposes?
>>>
>>> I am getting some code error when Resharper is installed (but the
>>> code runs fine when Resharper is removed), and VS2005 didnt
>>> complaint of anything wrong.
>>>


0
Comment actions Permalink

Rosdi,
If they are located in different folders within the single web project, VS
really treats them as if the are located in different assemblies. R# does
not support this yet and moreover will not support by 2.0 release,

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.