简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM