Hey All, I've been experimenting with Orchard and have subsequently created some custom modules. All was working fine up until today. I'm not sure what has been altered/corrupted, but one of the module projects believes it is compiling as ISO-2 C#, when
it is most definitely set as default; so a whole host of intellisense warnings run rampant. I was putting up with it for several hours, but now it has restricted me from compiling properly; common error being: Feature ** cannot be used because it is not part
of the ISO-2 C# language specification. Does anyone know how to fix this [common internet remedy is to change the Properties > Build > Advanced > Language Version - to default], but it already is? Thanks for any thoughts in anticipation, cheers Angela.
Ye gods! Well, I did what I said I would and all was performing as expected for a day or so, then without warning, the exact same errors began littering my screen. I believe it has something to do with web.config within my modules, and I’m not referring
to editing the file, just simply viewing it? Because, on initial appearance, the file contains no errors – then once intellisense catches up, it will flag the standard, unadulterated ‘orchard module’ web.config’s <remove name="host" /> as an invalid element,
then all of the other errors seem to flow on from there moments later? I’ve tried many remedies without success and I’m currently going nowhere fast. Any more theories guys? Thanks Ange
angelanimal
Member
6 Points
4 Posts
...not part of the ISO-2 C# language specification - ERROR help?
Feb 17, 2012 04:05 AM|LINK
Hey All, I've been experimenting with Orchard and have subsequently created some custom modules. All was working fine up until today. I'm not sure what has been altered/corrupted, but one of the module projects believes it is compiling as ISO-2 C#, when it is most definitely set as default; so a whole host of intellisense warnings run rampant. I was putting up with it for several hours, but now it has restricted me from compiling properly; common error being: Feature ** cannot be used because it is not part of the ISO-2 C# language specification. Does anyone know how to fix this [common internet remedy is to change the Properties > Build > Advanced > Language Version - to default], but it already is? Thanks for any thoughts in anticipation, cheers Angela.
raduenuca
All-Star
24675 Points
4250 Posts
Re: ...not part of the ISO-2 C# language specification - ERROR help?
Feb 17, 2012 08:07 AM|LINK
Hi,
Have you checked this as well:
http://stackoverflow.com/questions/8568347/razor-intellisense-error-feature-extension-method-cannot-be-used-because-it-i
?
Radu Enuca | Blog
angelanimal
Member
6 Points
4 Posts
Re: ...not part of the ISO-2 C# language specification - ERROR help?
Feb 19, 2012 09:22 PM|LINK
Yeah, no success. I think, i'll just have to remove that project and re-create it fresh; very strange? Thanks anyway, Ange
angelanimal
Member
6 Points
4 Posts
Re: ...not part of the ISO-2 C# language specification - ERROR help?
Feb 21, 2012 04:04 AM|LINK
Ye gods! Well, I did what I said I would and all was performing as expected for a day or so, then without warning, the exact same errors began littering my screen. I believe it has something to do with web.config within my modules, and I’m not referring to editing the file, just simply viewing it? Because, on initial appearance, the file contains no errors – then once intellisense catches up, it will flag the standard, unadulterated ‘orchard module’ web.config’s <remove name="host" /> as an invalid element, then all of the other errors seem to flow on from there moments later? I’ve tried many remedies without success and I’m currently going nowhere fast. Any more theories guys? Thanks Ange
Young Yang -...
All-Star
21345 Points
1818 Posts
Microsoft
Re: ...not part of the ISO-2 C# language specification - ERROR help?
Feb 24, 2012 12:46 AM|LINK
Hi
Try this:
http://social.msdn.microsoft.com/Forums/ar/csharpide/thread/51f711f5-1cca-49a9-95a8-0d319a97b0c1
Hope this helpful
Regards
Young Yang
Feedback to us
Develop and promote your apps in Windows Store