Physical location of RoleEntryPoint
-
quarta-feira, 23 de março de 2011 14:08
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
Todas as Respostas
-
quarta-feira, 23 de março de 2011 14:45
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.
- Marcado como Resposta Mog LiangModerator quarta-feira, 30 de março de 2011 09:04
-
quarta-feira, 23 de março de 2011 18:33
Thanks. Didn't know that!
Anynone with an idea how to accomplish that in VS?
Dominick Baier | thinktecture | http://www.leastprivilege.com -
quarta-feira, 23 de março de 2011 18:47Usuário que respondeThis post by Jim Nakashima has some pointers that may be useful.
-
quarta-feira, 23 de março de 2011 18:50
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 -
quarta-feira, 23 de março de 2011 20:08
I just remembered this old post that you might find useful.
http://social.msdn.microsoft.com/Forums/en/windowsazure/thread/fc5d5eb0-956a-4374-b650-abba417222c2

