Good day, Not a 100% - I believe you are right "prohibited to write an assembly that using other assemblies that I don't have them with me"
Sam On Mon, Sep 23, 2019 at 8:14 PM Tanakorn Leesatapornwongsa < [email protected]> wrote: > Hi, > > I got this exception, AssemblyResolutionException when I try to write > assembly back. Even with this simple code, it also fails > > string path1 = "assembly1.dll"; > string path2 = "copy1.dll"; > AssemblyDefinition assembly = AssemblyDefinition.ReadAssembly(path1); > assembly.Write(path2); // AssemblyResoultionException is thrown here > > I have read the previous post about DefaultAssemblyResolver, > https://groups.google.com/forum/#!searchin/mono-cecil/failed$20to$20resolve|sort:date/mono-cecil/2YrccvV3dpY/xh05pT6DAwAJ > The problem is I don't have the assembly that Mono.Cecil wants to resolve > so even if I give WriterParameters with DefaultAssemblyResolver, it > doesn't help. > > Is there any way to work around this? Or I am prohibited to write an > assembly that using other assemblies that I don't have them with me? > > Thank you, > Tanakorn L. > > -- > -- > -- > mono-cecil > --- > You received this message because you are subscribed to the Google Groups > "mono-cecil" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mono-cecil/7acd1605-93b4-4875-8dd3-46c8a2f163d3%40googlegroups.com > <https://groups.google.com/d/msgid/mono-cecil/7acd1605-93b4-4875-8dd3-46c8a2f163d3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mono-cecil/CAFc38JULGXjFiHgzE0RhH8AXng4L3icP7WoH7GEzUf-fLwe93Q%40mail.gmail.com.
