您好我已经创建了WPF(XBAP)应用程序。
对于引用的程序集,Build Action被指定为Embedded Resource。
但是.NET仍会寻找实际的程序集。
有没有办法告诉.NET程序集是嵌入式资源。
e.g。 MyApp.dll是使用Comp.dll的XBAP 我在MyApp项目中添加了Comp.dll作为项目。 但是在执行时,MyApp会查找Comp.dll,而应查看资源。
答案 0 :(得分:0)
这些链接可能会将您对embed DLL's
的查询作为exe中的资源 -
Embedding DLLs in a compiled executable
C#: How to embed DLL into resourcefile (no dll copy in program directory)