Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 502
mokaymakci Avatar asked Oct 02 '09 11:10

mokaymakci


1 Answers

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/)

like image 84
Alex Duggleby Avatar answered Oct 12 '22 23:10

Alex Duggleby