AppDomain ExecuteAssembly method - how to specify an alternate entry point RRS feed

  • Question

  • I can create a new AppDomain and call ExecuteAssembly on said AppDomain with no problems. The thing is, it seems, that the assembly has to be a .exe with an entry point defined.

    What I would like to do is be able to either tell ExecuteAssembly an alternate entry point to use,  or perhaps to be able to specify an entry point in an otherwise normal class library type assembly.  Seems to me like there should be an assembly attribute for that, but I can't find it right now.  The "Startup Object" specified in the C# project properties seems like it would be heading in the right direction, but won't set one for a class library assembly.

    Anyone done something like this?


    roger reynolds
    Monday, April 12, 2010 7:41 PM


All replies