Search code examples
c#.netmultilingualmultilingual-app-toolkit

When attempting to enable Multilingual app toolkit on a project, nothing happens


When I try to enable the Mulitlingual app toolkit on a C# project, I get an error such as the following and nothing more happens:

Project 'project name' was not enabled - the project's source culture could not be determined.

What's wrong?


Solution

  • Add a line like this to your assemblyinfo.cs file:

    [assembly: NeutralResourcesLanguage("en")] 
    

    The indicated language is the one that the application currently uses (i.e usually hardcoded texts, before translation)