简体   繁体   中英

C# app - How to move all resources out of the main assembly

For my C# apps I need to have default/neutral resources placed in a sattelight assembly, such that the output of a build looks like: MyApp.exe -AND- MyApp.resources.dll <- containing default/neutral resources How can I accomplish this using VS2008 and .NET runtime 2.0 or greater? Secondary question: How to keep the resources in the exe, and ALSO create a sattelite assembly dll for en (a complete one, not an empty one that falls back on looking in the main assembly exe).

Create a separate project called MyApp.Resources that only contains your resources. Have your main project depend on/refer to that project.

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