[232] System namespace overriding and doesn't use mscorlib


We are don't using mscorlib in our project, but have own assemblies that
cover some standard namespaces such as System, System.Diagnostics... and
we have own implementation many types from mentioned namespaces. In this
case ReSharper has some strange warnings, for example: ambiguity warning
(System.Debug and System.Debug). It seems R# does not recognize that mscorlib
was cut off.

Best regards, Segey Pomadin.


10 comments
Comment actions Permalink

Hello Sergey,

do you mean that you have the option 'Doesn't reference Mscorlib' enabled
in project settings?
If yes, I'm afraid that ReSharper currently doesn't support this option.


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

We are don't using mscorlib in our project, but have own assemblies
that cover some standard namespaces such as System,
System.Diagnostics... and we have own implementation many types from
mentioned namespaces. In this case ReSharper has some strange
warnings, for example: ambiguity warning (System.Debug and
System.Debug). It seems R# does not recognize that mscorlib was cut
off.

Best regards, Segey Pomadin.



0
Comment actions Permalink


Hello Dmitry,

Thanks for answer. Maybe in the futire you will implement this feature...
It will be fine.

But one thing is very strange in this situation. There is R# error "Module
'MyCorLib.System' should be referenced" for MANY statements of the projects
that are included in one solution with described mscorlib reimplementation.
It's strange because this projects are not use my implementation of mscorlib
(they are used mscorlib) but R# highlighted statements in this projects (about
50%) as error (see above). Is there way to disable this warrning/error ("Module
'{Module.Name}' should be referenced") in R# at all? Could you get the way
to manage this warning?

Best regards, Sergey Pomadin

Hello Sergey,

do you mean that you have the option 'Doesn't reference Mscorlib'
enabled
in project settings?
If yes, I'm afraid that ReSharper currently doesn't support this
option.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> We are don't using mscorlib in our project, but have own assemblies
>> that cover some standard namespaces such as System,
>> System.Diagnostics... and we have own implementation many types from
>> mentioned namespaces. In this case ReSharper has some strange
>> warnings, for example: ambiguity warning (System.Debug and
>> System.Debug). It seems R# does not recognize that mscorlib was cut
>> off.
>>
>> Best regards, Sergey Pomadin.
>>


0
Comment actions Permalink

Hi Dmitry,

I know this is a rather old thread, but... I'm working on a project that is a new system core lib (so, basically, a new implementation of the mscorlib) and while I do not mind Resharper to show a lot of errors (althought it would be nice to have ReSharper use that new corelib), trying to edit some source files ReSharper hangs badly (so badly that I have to kill VS in order to close the project). If I disable ReSharper I can edit the project without problems.

Do you think I should report this as an error? Have JetBrains any plans on supporting projects that make use of a non-standard core lib?

Thanks in advance and regards,

0
Comment actions Permalink

Since your case is rather unusual, I think we could do nothing withoutsolution which demonstrates this problem. Please could you prepare small one for us?

0
Comment actions Permalink

Sure, no problem. In the attached solution, on the file already open when you open the solution (Int32.cs), try to change the Namespace from "flash.Global" to "System". After you do that, VS will hang and stop responding.

Maybe an option could be way to enable/disable ReSharper per project/solution. In that way, I can continue using resharper with other projects/solutions and disable for some, specific ones.

Regards,



Attachment(s):
flash.zip
0
Comment actions Permalink

I cannot reproduce the hang on the latest ReSharper 5.0 EAP builds.....

0
Comment actions Permalink

It is safe for me to install RS5 EAP? I mean... it is stable enought?

0
Comment actions Permalink

I must say: WOOW!. V5 does not only works fine, but also it does not hangs AND works perfect with my custom corelib. One minor issue that I'd found and hope can be fixed: It seems that because I'm "replacing" the Void struct with a new one, Resharper wants all my methods to have a "return", even when the return type is "void". Check the attached solution. All the methods of the Test class are marked in red. Simply add a "return;" at the end of one of those and Resharper does not shows anymore a problem on that method.



Attachment(s):
CStoFlash.zip
0
Comment actions Permalink

Thank you for the feedback!
I'll check the issue with 'void' shortly.

P.S. The problem is fixed, look forward to the tomorrow's nightly build

0

Please sign in to leave a comment.