Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Cannot resolve symbol" error in Visual Studio 2008?

I have started working on some code left behind by previous developers, and I'm having a strange issue with it. The code is C# in ASP.NET 2.0, and I'm using ReSharper 4.1 in Visual Studio 2008.

This code compiles just fine and works in my Web app, but ReSharper is barfing on it with the message, "Cannot resolve symbol '<name of class here>'". It's not the end of the world, but I'd rather not have tons of red errors in my code files.

A sample line:

InvoiceItem invoiceItems = GetInvoiceItems(serviceLineItemID);

InvoiceItem is an .xsd dataset with automatically generated .cs code-behind. In the past, I've used xsd.exe to create the .cs files for datasets, and included the .cs in my project, but that won't work in this situation. I've been a .NET developer for a long time, but this is the first time I've run into this issue.

Any ideas?

like image 953
Robert S. Avatar asked Jan 13 '09 22:01

Robert S.


1 Answers

It may be a bug in resharper, disable resharper and see if it still happens. If so, report the bug to resharper. They're usually pretty responsive.

like image 128
volatilsis Avatar answered Sep 22 '22 22:09

volatilsis