代码找不到塞尔维亚语资源

Code can't find resources for Serbian language

我有一个用 c# 编写的应用程序,该应用程序有多种语言 en-US fr-FR...等等

我的语言文件是 .resx。所以我尝试添加新语言 Serbian 但出现异常

{"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure \"Vim.lang.language.resources\" was correctly embedded or linked into assembly \"AVIM\" at compile time, or that all the satellite assemblies required are loadable and fully signed."}

所有其他语言都可以正常工作。

 this.culture = new CultureInfo("sr-SP-Latin", false);
 this.resourceManager = new ResourceManager(this.resourceFile, typeof(Program).Assembly);

如何解决这个问题?

您使用的值不正确,请使用 sr-Latn-RS

MSDN

您应该使用:sr-Latn-RS,来源:https://msdn.microsoft.com/en-us/library/hh441729.aspx ...希望这有帮助..:)