2010-09-21 46 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

相關問題