1

I have project with my resources (resx files), and I want to use them as App_GlobalResources in another assembly which is asp.net project.

Now I've tried to click on Add > Existing Item > Add as link, and despite the files are visible int this folder, they are missing on the runtime and i see info that the application cannot find resource with specified key..

Any suggestions? Maybe there is other way to use resources from that library?

I just want it to be joinable by <% $ Resources x, y %>

Łukasz W.
  • 9,538
  • 5
  • 38
  • 63
  • Possible duplicate of: http://stackoverflow.com/questions/3192223/resx-files-and-extra-application-layer and http://stackoverflow.com/questions/1222519/access-resx-resource-files-from-another-project – RPM1984 Jul 07 '10 at 12:02
  • Not really.. I need a solution to use linked resources with <% $ Resources x,y %> syntax.. – Łukasz W. Jul 08 '10 at 04:28

2 Answers2

0

Right click on the items, and set the compile mode to "Resource". I think that was what I had to do...

Merlyn Morgan-Graham
  • 58,163
  • 16
  • 128
  • 183
0

AFAIK the <%$ Resources:Key %> syntax works only with resource files in the App_LocalResources special folder.

You could make the auto-generated source file public (instead of internal) and use the key directly by setting the Custom Tool to PublicResXFileCodeGenerator.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928