mokaymakci
mokaymakci

Reputation: 1393

How can I share a resource file between projects in Visual Studio?

I am using C# and how can I code to share a resource file between my projects in the same solution?

Thank you.

Upvotes: 6

Views: 3533

Answers (1)

Alex Duggleby
Alex Duggleby

Reputation: 8038

You can add a resx to an empty class project, change the visibility type on the editor from internal to public and then reference that project from both other projects.

http://blog.dmbcllc.com/wp-content/uploads/2009/04/image.png (from: http://blog.dmbcllc.com/2009/04/02/silverlight-resx-files-and-internationalization/)

Upvotes: 12

Related Questions