The language name 'en-US' is invalid (CS2038)

Ask general questions here.
AdrianY
Posts: 2
Joined: Mon Jun 20, 2016 11:18 am

The language name 'en-US' is invalid (CS2038)

Post by AdrianY » Mon Jun 20, 2016 11:57 am

I've just upgraded to Version 6 and have started seeing this message appearing as a Warning for Line 1. The Virtual Machine has UK regional settings (if that has anything to do with it). Is this warning something I should be worried about, or can I just ignore it?

Martin
Posts: 152
Joined: Fri Aug 15, 2014 12:24 pm

Re: The language name 'en-US' is invalid (CS2038)

Post by Martin » Tue Jun 21, 2016 8:11 am

Did some digging and I think that you should try to take a look inside the AssemblyInfo.cs under the project folder. I believe that en-US is set there somewhere (AssemblyCulture probably).

You can remove it and leave the value empty. Test out some of your test flows and see if it has any effect.

AdrianY
Posts: 2
Joined: Mon Jun 20, 2016 11:18 am

Re: The language name 'en-US' is invalid (CS2038)

Post by AdrianY » Mon Jun 27, 2016 2:40 pm

Martin,

Thanks for responding. Since my original question, I've had a 'corrupt' app.config which I've replaced with one from a version 5 backup and I've not encountered the message again. My solution has 15 projects and I've gone through and checked the AssemblyInfo.cs and made sure none of them contain references to en-US. Fingers crossed - it seems to have sorted itself out!