D
D
DelmorS2015-04-10 14:32:49
.NET
DelmorS, 2015-04-10 14:32:49

C# .Net 3.5 - Is there an option to not inject Interop generated .dll files?

I'm building an application that allows you to install important windows updates via wuapi.dll. When created on .Net 3.5, an Interop.wuapi.dll file is generated, which must be kept in the folder with the project and the program; on .Net 4.0, you can set the link property "Embed Interop Types" to true, and then it will be embedded in the .exe file.
I would like to create an application on .Net 3.5 and with just one .exe file. The forums suggest using ILMerge and the like. Is it possible to somehow embed the generated .dll into the project without using third-party libraries and solutions, or even do without creating this .dll?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lam0x86, 2015-04-10
@DelmorS

Decompile the generated interop assembly and add it to your project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question