embed dll's or references in my program with visual studio

0

Hello I was trying to automatically add the dll's that require my program to be added by means of some extension or something. Probe with sewing.fuddy but I get the error:

coustura.fuddy no debug symbols

Seeing that it did not work, try resource.embedder but it gave some type errors:

La variable 'exception1' se ha declarado pero nunca se usa

At the end he also asks me for the bookstores so it did not work either. Any idea how I could do so that the dll or references are included when compiling my project ??

I was trying to embed the MetroFramework library. I know that Ilmergue exists but I wanted to do it by compiling it or in some simpler way.

    
asked by Tecnology Now 24.10.2017 в 19:59
source

1 answer

0

You can try this way:

string[] files = Directory.GetFiles(@"c:\dll", "*.dll"); // Trae todos los ensamblados de esa carpeta
foreach (string file in files)
{
  Assembly assembly = Assembly.LoadFrom(file); // cargas cada ensamblado.
}

Greetings

    
answered by 24.10.2017 в 20:43