VB.NET Code Inspection in R# 6.0

I just recently upgraded from R# 5.1 to 6.0, and I'm noticing a problem wtih VB.NET code inspection.

When I have code inspection enabled for VB.NET, I have an Imports namespace declaration that is throwing a "BC40056:Namespace or type specified in the Imports 'name' doesn't contain any public member or cannot be found" warning.

The public method references for this namespace used in the code are also throwing "Cannot resolve symbol 'name'" errors.

The problem is that this namespace is not referenced from a DLL in Bin; rather it's a class in my solution.  This class is not recognized by code inspection, for some reason.

The solution compiles just fine, and executes flawlessly.

When I toggle VB.NET code inspection from ReSharper to Visual Studio, all these warnings/errors go away.

How can I get R# 6.0 VB.NET Code Inspection to recognize solution defined namespaces?

Thanks, in advance, for your help!

2 comments
Comment actions Permalink

Hello Greg,

Could you please attach a small sample solution that would demonstrate this
behavior? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I just recently upgraded from R# 5.1 to 6.0, and I'm noticing a
problem wtih VB.NET code inspection.

When I have code inspection enabled for VB.NET, I have an Imports
namespace declaration that is throwing a "BC40056:Namespace or type
specified in the Imports 'name' doesn't contain any public member or
cannot be found" warning.

The public method references for this namespace used in the code are
also throwing "Cannot resolve symbol 'name'" errors.

The problem is that this namespace is not referenced from a DLL in
Bin; rather it's a class in my solution.  This class is not recognized
by code inspection, for some reason.

The solution compiles just fine, and executes flawlessly.

When I toggle VB.NET code inspection from ReSharper to Visual Studio,
all these warnings/errors go away.

How can I get R# 6.0 VB.NET Code Inspection to recognize solution
defined namespaces?

Thanks, in advance, for your help!

---
Original message URL:
http://devnet.jetbrains.net/message/5310394#5310394



0
Comment actions Permalink

I cannot upload the solution I'm working with because it's belongs to the company I'm employed with, in the financial industry, and I would most definitely get fired.  :)  However, I do need to include some additional facts about this solution.

This solution is an ASP.NET .NET 2.0 website using a homegrown workflow framework.
There is a namespace called Mynamespace.CommonServices which contains C# classes, one called HelperFunctions.
There is another namespace called Mynamespace.Delegates which contains VB.NET delegate classes.

The problem that I'm seeing is inside the VB.NET Mynamespace.Delegates - We have an Imports clause to the Mynamespace.CommonServices C# classes.   The import is throwing a "Namespace or type specified in the Imports 'name' doesn't contain any public member or cannot be found" warning.  When calling out to the public methods of HelperFunctions, I'm seeing "Cannot resolve symbol 'name'" errors.

Does it matter that these two classes reside in the same namespace but are using two different languages?

Thanks again for your help.

0

Please sign in to leave a comment.