ReSharper does not parse Managed C++ Libraries
I have a C# Project which references a library written in managed C++.
However, ReSharper does not seem to parse that library, since it marks
all uses of namespaces and classes from that C++ assembly as errors,
though the solution compiles fine. Did anyone else encounter this issue?
I've searched the tracker, but haven't found a hint.
Regards,
Thomas
Please sign in to leave a comment.
Hello Thomas,
support for managed C++ projects is simply not implemented yet in 2.0. We
expect
to support managed C++ soon.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Dimtry,
maybe my point wasn't clear: I don't expect ReSharper to support managed
C++ sources, but proper highlighting in C#, if the class being used is
originated in a assembly written in managed C++.
Regards,
Thomas
Dmitry Shaporenkov (JetBrains) wrote:
>> I have a C# Project which references a library written in managed C++.
>> However, ReSharper does not seem to parse that library, since it marks
>> all uses of namespaces and classes from that C++ assembly as errors,
>> though the solution compiles fine. Did anyone else encounter this
>> issue? I've searched the tracker, but haven't found a hint.
>>
>> Regards,
>> Thomas
Hello Thomas,
no, I understood you correctly. Under support for managed C++ I meant exactly
parsing output assemblies of
C++ projects.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>> Hello Thomas,
>>
>> support for managed C++ projects is simply not implemented yet in
>> 2.0.
>> We expect
>> to support managed C++ soon.
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> I have a C# Project which references a library written in managed
>>> C++. However, ReSharper does not seem to parse that library, since
>>> it marks all uses of namespaces and classes from that C++ assembly
>>> as errors, though the solution compiles fine. Did anyone else
>>> encounter this issue? I've searched the tracker, but haven't found a
>>> hint.
>>>
>>> Regards,
>>> Thomas
Hi Dmitry,
ok, I see. I haven't thought that it would make a difference in which
language a assembly has been written, since at the end of the days it's
all MSIL.
Regards,
Thomas
Dmitry Shaporenkov (JetBrains) wrote:
>> Hi Dimtry,
>>
>> maybe my point wasn't clear: I don't expect ReSharper to support
>> managed C++ sources, but proper highlighting in C#, if the class being
>> used is originated in a assembly written in managed C++.
>>
>> Regards,
>> Thomas
>> Dmitry Shaporenkov (JetBrains) wrote:
>>
>>> Hello Thomas,
>>>
>>> support for managed C++ projects is simply not implemented yet in
>>> 2.0.
>>> We expect
>>> to support managed C++ soon.
>>> Regards,
>>> Dmitry Shaporenkov
>>> JetBrains, Inc
>>> http://www.jetbrains.com
>>> "Develop with pleasure!"
>>>> I have a C# Project which references a library written in managed
>>>> C++. However, ReSharper does not seem to parse that library, since
>>>> it marks all uses of namespaces and classes from that C++ assembly
>>>> as errors, though the solution compiles fine. Did anyone else
>>>> encounter this issue? I've searched the tracker, but haven't found a
>>>> hint.
>>>>
>>>> Regards,
>>>> Thomas
Hello Thomas,
of course it doesn't matter which language the output assembly was compiled
from. However,
there are extra activities such as matching output assemblies with projects,
handling changes of
active configuration (you may have several output assemblies at a time, one
for Debug and another
for Release configurations) which need to be done.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>> Hello Thomas,
>>
>> no, I understood you correctly. Under support for managed C++ I meant
>> exactly parsing output assemblies of
>> C++ projects.
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> Hi Dimtry,
>>>
>>> maybe my point wasn't clear: I don't expect ReSharper to support
>>> managed C++ sources, but proper highlighting in C#, if the class
>>> being used is originated in a assembly written in managed C++.
>>>
>>> Regards,
>>> Thomas
>>> Dmitry Shaporenkov (JetBrains) wrote:
>>>> Hello Thomas,
>>>>
>>>> support for managed C++ projects is simply not implemented yet in
>>>> 2.0.
>>>> We expect
>>>> to support managed C++ soon.
>>>> Regards,
>>>> Dmitry Shaporenkov
>>>> JetBrains, Inc
>>>> http://www.jetbrains.com
>>>> "Develop with pleasure!"
>>>>> I have a C# Project which references a library written in managed
>>>>> C++. However, ReSharper does not seem to parse that library, since
>>>>> it marks all uses of namespaces and classes from that C++ assembly
>>>>> as errors, though the solution compiles fine. Did anyone else
>>>>> encounter this issue? I've searched the tracker, but haven't found
>>>>> a hint.
>>>>>
>>>>> Regards,
>>>>> Thomas
Hi Dmitry,
thanks for the clarification. I'm now eagerly awaiting MCPP support. All
the red lines in my source code are really irritating me ;)
Regards,
Thomas
Dmitry Shaporenkov (JetBrains) wrote:
>> Hi Dmitry,
>>
>> ok, I see. I haven't thought that it would make a difference in which
>> language a assembly has been written, since at the end of the days
>> it's all MSIL.
>>
>> Regards,
>> Thomas
>> Dmitry Shaporenkov (JetBrains) wrote:
>>
>>> Hello Thomas,
>>>
>>> no, I understood you correctly. Under support for managed C++ I meant
>>> exactly parsing output assemblies of
>>> C++ projects.
>>> Regards,
>>> Dmitry Shaporenkov
>>> JetBrains, Inc
>>> http://www.jetbrains.com
>>> "Develop with pleasure!"
>>>> Hi Dimtry,
>>>>
>>>> maybe my point wasn't clear: I don't expect ReSharper to support
>>>> managed C++ sources, but proper highlighting in C#, if the class
>>>> being used is originated in a assembly written in managed C++.
>>>>
>>>> Regards,
>>>> Thomas
>>>> Dmitry Shaporenkov (JetBrains) wrote:
>>>>> Hello Thomas,
>>>>>
>>>>> support for managed C++ projects is simply not implemented yet in
>>>>> 2.0.
>>>>> We expect
>>>>> to support managed C++ soon.
>>>>> Regards,
>>>>> Dmitry Shaporenkov
>>>>> JetBrains, Inc
>>>>> http://www.jetbrains.com
>>>>> "Develop with pleasure!"
>>>>>> I have a C# Project which references a library written in managed
>>>>>> C++. However, ReSharper does not seem to parse that library, since
>>>>>> it marks all uses of namespaces and classes from that C++ assembly
>>>>>> as errors, though the solution compiles fine. Did anyone else
>>>>>> encounter this issue? I've searched the tracker, but haven't found
>>>>>> a hint.
>>>>>>
>>>>>> Regards,
>>>>>> Thomas
This is not true.
There are some cases in CLR which couldn't be compiled from C# code.
For example, all methods compiled from C++ have the "hide-by-name" flag, and
all from C# - "hide-by-sig". Currently we do not support hide-by-name, and
the implementation of it isn't very easy
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>> of course it doesn't matter which language the output assembly was
>> compiled from.
>>
There are a lot of them actually, and the same applies for every language
compiled
into MSIL. After all, MSIL is in a sense a union of all constructs found
in different languages.
But that's another problem, and it's not relevant to this thread.