This is a migrated thread and some comments may be shown as answers.

"Type name does not match file name" warning for WCF service codebehind

3 Answers 57 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dan Aucott
Top achievements
Rank 1
Dan Aucott asked on 02 May 2013, 03:43 PM
Hi.

I'm getting a warning of "Type name does not match file name" against the codebehind files for a WCF service - for example, the service "CorrelationService.svc" has a codebehind of "CorrelationService.svc.vb".

JustCode offers to fix this by renaming the VB file to CorrelationService.vb, but this seems to be working against the way VS2010 sets up the files.  

Could this be a switchable option?  I don't mind it for normal .vb files, but I'd rather leave the backing files for services as .svc.vb?

Thanks

Dan

3 Answers, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 06 May 2013, 09:04 AM
Hello Dan,

 Thanks for contacting us.
We are aware of this issue and as a workaround I could recommend ignoring this particular warning.
You can do that like shown in this demo.
I hope it helps.
Thanks.

Kind regards,
Zdravko
the Telerik team
Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
0
Dan Aucott
Top achievements
Rank 1
answered on 14 May 2013, 03:47 PM
Hi Zdravko.

I think I'll wait for a fix - it's a bit draconian to ignore every instance of this since we may end up missing items that should be renamed.

Dan
0
Nikolay Valchev
Telerik team
answered on 15 May 2013, 01:29 PM
Hi Dan,

This Good-Code-Yellow has been fixed and will be released in the upcoming internal build.

Kind regards,
Nikolay Valchev
the Telerik team
Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
Tags
Code Analysis
Asked by
Dan Aucott
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Dan Aucott
Top achievements
Rank 1
Nikolay Valchev
Telerik team
Share this question
or