Could not find any resources appropriate for the specified culture or the neutral culture. - Resource file sharing problem
I have a normal class library. Recently, I localized this class library.
I also have another Silverlight class library, Which is basically a linked file project
<Link>Reports\Reports.cs</Link>
In that, I have included the same resx file as link reference as I done for other files. While running, it throws the following exception.
Could not find any resources appropriate for the specified culture or the neutral culture.
Make sure "BCL.Resources.BCLNamespace.resources" was correctly embedded
or linked into assembly "SilverlightBCL" at compile time, or that 开发者_运维百科all the
satellite assemblies required are loadable and fully signed.
Keeping the Default namespace in Assembly2 (SilverlightBCL) as same as Assembly1 (BCL) fixes this issue. Thanks all :)
In the [Filename].Designer.cs , it could be one of the following:
the Namespace
namespace Company.Dept.MyApp.Resource { // Your code here. }
ResourceManager
new global::System.Resources.ResourceManager( "Company.Dept.MyApp.Resource.Templates", typeof(Templates).Assembly);
精彩评论