Resharper says "Cannot resolve symbol", but project builds fine

Hi,

The attached screenshot shows:

Resharper doesn't recognise the namespace 'Microsoft.Xrm.Sdk'
Resharper doesn't recognise 'Entity' which makes sense because it is part of that .net library
Visual studio can compile despite the errors that R# is bringing up
The references list clearly shows that the microsoft.xrm.sdk dll is being referenced
I'm using R# v6.0 (6.0.2202.688)
I'm using VS 10.0.40219.1

When you roll your mouse over the 'Sdk' portion of the using statement, R# says "Cannot resolve symbol 'Sdk', Active hotspot in live template session".
When you roll your mouse over the 'Entity' it says 'Cannot resolve symbol Entity'.

This project was downloaded from http://jswebresourcemanager.codeplex.com/. It's untouched code, just downloaded solution, unzipped, added the required references and hit build and it built without a problem.

Cheers



Attachment(s):
Resharper screenshot.png
2 comments

Hello Kias,

I'm afraid I wasn't able to compile that project immediately after opening,
where do I get microsoft.crm.sdk.proxy and microsoft.xrm.sdk? Also, if your
project compiles, but ReSharper still shows the errors, please close Visual
Studio, delete _ReSharper. subfolder of your solution folder
and reopen your solution. Let me know if this helps. Thank you!

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

Hi,

The attached screenshot shows:

Resharper doesn't recognise the namespace 'Microsoft.Xrm.Sdk'
Resharper doesn't recognise 'Entity' which makes sense because it is
part of that .net library
Visual studio can compile despite the errors that R# is bringing up
The references list clearly shows that the microsoft.xrm.sdk dll is
being referenced
I'm using R# v6.0 (6.0.2202.688)
I'm using VS 10.0.40219.1
When you roll your mouse over the 'Sdk' portion of the using
statement, R# says "Cannot resolve symbol 'Sdk', Active hotspot in
live template session".

When you roll your mouse over the 'Entity' it says 'Cannot resolve
symbol Entity'.

This project was downloaded from
http://jswebresourcemanager.codeplex.com/. It's untouched code, just
downloaded solution, unzipped, added the required references and hit
build and it built without a problem.

Cheers

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



0

Hi Andrey,

Sorry, those missing DLLs were from the MS CRM 2011 SDK. I'll try deleting that folder and see if it solves the problem. If not I'll attach the DLLs

As a side note, I also noticed this problem in a separate project using some dlls from the MS CRM SDK but just assumed it was resharper not updating properly/quickly because the .cs file was more than 200 thousand lines long. The .cs file was generated automatically by crmsvcutil.exe hence the number of lines. In that occassion it was also complaining about the same "using" statement for Microsoft.Xrm.Sdk and the same type called Entity. Looks like it might be reproducable.

Thanks for your help

0

Please sign in to leave a comment.