Answered Physical location of RoleEntryPoint

  • Wednesday, March 23, 2011 2:08 PM
     
     

    Hi,

    must the RoleEntryPoint derived class be part of the web/worker role project. Or is it sufficient to just include the class in some referenced project (like an assembly in the /bin directory)?

    thanks


    Dominick Baier | thinktecture | http://www.leastprivilege.com

All Replies

  • Wednesday, March 23, 2011 2:45 PM
     
     Answered

    Hi Dominick,

    The location of the role entry point DLL is specified in the cspack command line.

       /role:<RoleName>;[<RoleBinariesDirectory>];[<RoleEntryPointDLL>]

    Buf if you are using Visual Studio, I suppose it assumes that the entry point is located in the role project. I don't think that there's a way to override this, but I could be wrong.

     

     

  • Wednesday, March 23, 2011 6:33 PM
     
     

    Thanks. Didn't know that!

    Anynone with an idea how to accomplish that in VS?


    Dominick Baier | thinktecture | http://www.leastprivilege.com
  • Wednesday, March 23, 2011 6:47 PM
    Answerer
     
     
    This post by Jim Nakashima has some pointers that may be useful.
  • Wednesday, March 23, 2011 6:50 PM
     
     

    Dominick,

    You can use a post build event to replace the assembly name in the __entrypoint.txt file, azure will use this information to look for a class that inherits from RoleEntrypoint.

    Kind regards,
    Yves

  • Wednesday, March 23, 2011 8:08 PM