Reputation: 25294
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?
Upvotes: 5
Views: 8345
Reputation: 746
If you used ReSharper to clean the code it'll sometimes update the namespace on the code page but not the design side. It'll all so shorten control registration for referenced dlls. Sometimes it works, sometimes it doesn't.
edit: wow, this is old ... need to start looking at the dates ...
Upvotes: 0
Reputation: 1065
I know it's a bit late but I just confirmed that build 1212 seems to be working with automatically generated code.
Upvotes: 1
Reputation: 12152
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.
Upvotes: 0
Reputation: 536
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.
Upvotes: 8