2010-09-21 64 views
1

我有一个普通的类库。最近,我定位了这个类库。找不到适合特定文化或中性文化的资源。 - 资源文件共享问题

我也有另外一个Silverlight的类库,这基本上是一个链接文件的项目

<Link>Reports\Reports.cs</Link> 

在这方面,我已经包括了同样的RESX文件链接引用我的其他文件来完成。在运行时,会引发以下异常。

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. 

回答

1

保持在Assembly2(SilverlightBCL)的默认命名空间一样Assembly1(BCL)修正了这个问题。 感谢所有:)

+0

我有sa我问题,更改这两个项目属性使用相同的默认命名空间工作。 – lko 2012-02-13 07:50:31

1

在[文件名]了.Designer.cs,它可能是以下中的一个:

  • 的命名空间

    namespace Company.Dept.MyApp.Resource { 
        // Your code here. 
    } 
    
  • 的ResourceManager

    new global::System.Resources.ResourceManager(
        "Company.Dept.MyApp.Resource.Templates", 
        typeof(Templates).Assembly); 
    
+0

根据你的问题是什么?在我的项目中这两个都没问题,但仍然失败 – Vladimir 2018-02-04 14:09:22