How can I embed C# assembly resources in the same assembly?

Lieven Cardoen

I have added resources for different cultures to my Class Library Project. When building, seperate folders are created for each culture with an assembly in each of them.

Is there a way to embed all the resources in the Class Library Assembly, instead of having an extra assembly for each culture? The class library is eventually used in another project, so with theses seperate folders, it need to distribute a zip file instead of just one assembly.

Clarification: I was looking for a solution without installers or second party tools. Rather was I hoping for a solution inside Visual Studio where the outcome would be one assembly with the different resources in it.

Maximc

To murge multiple assemblys into one you can use Fody/Costura. It allows you to merge multiple assemblys into 1 project. In your main project you add it(can be done via nuget). Then just in weavers.xml (file that will be automaticly generated add these text:

<Costura>
    <IncludeAssemblies>
        Project.MyData.Dutch
        Project.MyData.French
        Project.MyData.English
    </IncludeAssemblies>
</Costura>

(it should be the same name as the reference, so without the .dll suffix)

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

How can I make Linux system calls from a C/C++ application, without using assembly, and in a cpu-independent manner?

来自分类Dev

Can't use DataContractSerializer - assembly mismatch?

来自分类Dev

C#Assembly.LoadFrom(myNetworkPath)引发FileLoadException

来自分类Dev

从结构体(C / Assembly)调用函数

来自分类Dev

How to speedup .NET assembly loading performance

来自分类Dev

How are exceptions caught and dealt with at the low (assembly) level?

来自分类Dev

C:\ Windows \ assembly和C:\ Windows \ Microsoft.NET \ assembly目录之间有什么区别?

来自分类Dev

Deployment Assembly中的target / m2e-wtp / web-resources是什么?

来自分类Dev

从C#打开C:\ windows \ assembly \ gac_msil

来自分类Dev

How can I define an UUID for a class, and use __uuidof, in the same way for g++ and Visual C++?

来自分类Dev

C# Get Startup Project's Assembly Name

来自分类Dev

Where is the "2+2" in this Assembly code (translated by gcc from C)

来自分类Dev

在7条指令中将C编译为MIPS Assembly?

来自分类Dev

在Xcode中构建C ++和Assembly源代码

来自分类Dev

“ Assembly.EntryPoint.Invoke”出现问题[C#]

来自分类Dev

为C和ASSEMBLY文件编写通用的makefile

来自分类Dev

C#在Assembly.Load时避免文件锁定

来自分类Dev

从Assembly调用C函数-切换调用约定

来自分类Dev

How to make objdump show assembly of sections only appeared in source code?

来自分类Dev

In linux, how to do system calls through GNU ARM assembly

来自分类Dev

How to add classpath properties to executable jar using maven assembly

来自分类Dev

Convert Freepascal function to assembly?

来自分类Dev

nasm assembly for loop

来自分类Dev

ARM GCC inline assembly

来自分类Dev

SBT Scala Assembly插件

来自分类Dev

如何使Python使用Assembly

来自分类Dev

OR instruction in assembly into ECX register

来自分类Dev

如何让Python使用Assembly

来自分类Dev

How can I add a folder to "allowed_resources" in resource_config.json?

Related 相关文章

  1. 1

    How can I make Linux system calls from a C/C++ application, without using assembly, and in a cpu-independent manner?

  2. 2

    Can't use DataContractSerializer - assembly mismatch?

  3. 3

    C#Assembly.LoadFrom(myNetworkPath)引发FileLoadException

  4. 4

    从结构体(C / Assembly)调用函数

  5. 5

    How to speedup .NET assembly loading performance

  6. 6

    How are exceptions caught and dealt with at the low (assembly) level?

  7. 7

    C:\ Windows \ assembly和C:\ Windows \ Microsoft.NET \ assembly目录之间有什么区别?

  8. 8

    Deployment Assembly中的target / m2e-wtp / web-resources是什么?

  9. 9

    从C#打开C:\ windows \ assembly \ gac_msil

  10. 10

    How can I define an UUID for a class, and use __uuidof, in the same way for g++ and Visual C++?

  11. 11

    C# Get Startup Project's Assembly Name

  12. 12

    Where is the "2+2" in this Assembly code (translated by gcc from C)

  13. 13

    在7条指令中将C编译为MIPS Assembly?

  14. 14

    在Xcode中构建C ++和Assembly源代码

  15. 15

    “ Assembly.EntryPoint.Invoke”出现问题[C#]

  16. 16

    为C和ASSEMBLY文件编写通用的makefile

  17. 17

    C#在Assembly.Load时避免文件锁定

  18. 18

    从Assembly调用C函数-切换调用约定

  19. 19

    How to make objdump show assembly of sections only appeared in source code?

  20. 20

    In linux, how to do system calls through GNU ARM assembly

  21. 21

    How to add classpath properties to executable jar using maven assembly

  22. 22

    Convert Freepascal function to assembly?

  23. 23

    nasm assembly for loop

  24. 24

    ARM GCC inline assembly

  25. 25

    SBT Scala Assembly插件

  26. 26

    如何使Python使用Assembly

  27. 27

    OR instruction in assembly into ECX register

  28. 28

    如何让Python使用Assembly

  29. 29

    How can I add a folder to "allowed_resources" in resource_config.json?

热门标签

归档