Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 746
PMF Avatar asked Sep 25 '15 10:09

PMF


3 Answers

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)

like image 89
PMF Avatar answered Nov 08 '22 03:11

PMF


For a .Net Standard project, edit the csproj file to add:

<PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <NeutralLanguage>en-US</NeutralLanguage>
</PropertyGroup>
like image 23
François Avatar answered Nov 08 '22 04:11

François


In Visual Studio 2017 => Projects=>Properties=>Package=>Assembly nutral language=>English(...)=>Save Then Select Project in Solution Explorer=>Tools=>Multilingual App Toolkit =>Enable Selection enter image description here

Update: VS2019

VS2019 has a lot of changes in UI, so to find Assembly Neutral Language Option you can try below solution.

Right Click on Project => Got To Properties => Search button "Assembly Information" => Neutral Language => Select English => Save. And then rest of the process is same Select Project => Tools=> Multilingual App=> Enable Selection enter image description here

like image 15
Shrikant Dandile Avatar answered Nov 08 '22 03:11

Shrikant Dandile