【发布时间】:2011-07-21 09:28:54
【问题描述】:
我在一个类库项目中使用了资源文件(.resx)文件来存储一些错误信息。当我将 resx 文件的“构建操作”设置为“嵌入式资源”并进行部署时,它工作正常。但是我想将资源文件与 dll 分开,因为将来我可能需要更改 resx 文件中的错误消息,而无需重新编译类库项目。我在“构建操作”属性内容、资源等中尝试了另一个选项,但似乎没有任何东西以我需要的方式工作。当我使用这些属性时,出现以下错误,
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure was correctly embedded or linked into assembly at compile time, or that all the satellite assemblies required are loadable and fully signed.
有什么办法可以解决这个错误并让它工作吗?
【问题讨论】:
-
您寻求的答案应该在这个问题中:stackoverflow.com/questions/782899/…
标签: asp.net