views:

1936

answers:

4

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?

+5  A: 

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.

volatilsis
definitely something to do with the resharper, after I suspend it, the error gone!
schrodinger's code
A: 

May be a bug in ReSharper. You could try ReSharper 4.5 nightly builds (pre-release) to see if it is already fixed for this version. If not, please file a bug in our issue tracker (instructions). Thanks.

Ilya Ryzhenkov
A: 

I know it's a bit late but I just confirmed that build 1212 seems to be working with automatically generated code.

Matthew Doyle
A: 

I was having the same problem, but once I disabled ReSharper, all the errors turned into

 The name 'xxx' does not exist in the current context

Any thoughts?

y0mbo