AppDomain.CurrentDomain.GetAssemblies empty for published app

22 Views Asked by At

Building an app such as Winforms and using the

var myAssemblies = AppDomain.CurrentDomain.GetAssemblies ()

will return all assemblies of the project. However, using the Publish instead of build myAssemblies is empty. I think it is because the SingleFile is true, which is exactly what I want.

Is there any way to load all assemblies even in Publish with SingleFile option?

0

There are 0 best solutions below