开发者

How to get RESX value from other project in the same solution

开发者 https://www.devze.com 2023-01-19 02:39 出处:网络
I have two projects in the same solution: My.Solution.name.with.dots BLL Web in the BLL project, I create a class that need to get a globa开发者_开发知识库l resx value from RESX file that is place

I have two projects in the same solution:

 My.Solution.name.with.dots
   BLL
   Web

in the BLL project, I create a class that need to get a globa开发者_开发知识库l resx value from RESX file that is placed in the Web project. Is it possible ?

BLL can't have a reference to Web project because of the project dependency


The resource, as an accessible class, is part of your web dll. I would be better to move your resource to a separate project that both libraries can access.

Alternatively have a play with the ResXReader to read a resource file from a specific location.

0

精彩评论

暂无评论...
验证码 换一张
取 消